Skip to content

docs(adr): ADR-0159 — forms are their own metadata type; amend ADR-0017 and ADR-0146 D2 - #36957

Merged
objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/issue-36868-form-metadata-type-adr
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/issue-36868-form-metadata-type-adr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Part of #36868
Clause-②: no
Metadata-protocol: none

This PR is the design text only. What it leaves on the card after it merges: the owning seat files implementation cards ② to ⑤ from the dev report, and posts the pointer comments on the paused public-forms card and its sibling.

维护者速读

  • 用户能看到什么变化:用户无感。这是一份设计文档,把「表单从视图里拆出来、对外表单并入」的裁决写成可执行的方案,不改任何功能。
  • 为什么做:给「表单独立成一种元数据」这件事定下做法和先后顺序,暂停中的对外表单开发要等它才能继续。
  • 出错会怎样:文档本身不会影响线上;它管的是安全边界——已经关掉的对外表单,迁移时不能被重新打开。管理员做的定制里没有开关、却靠「盖住」应用自带的公开表单让地址保持关闭的,迁移时必须跟着一起搬走。几轮返工补上的是:同一张表单存了几份定制时,迁移只留现在真正生效的那一份,不会把一份没人读到的「开着」的定制搬到前面去。
  • 要你做什么:审核通过后合并这份文档;其中有五处不是你裁决的原话、已在文中逐条标明并放在裁决段落之外,不同意可以逐条划掉:①表单文件的后缀跟着改名一起换;②已关掉但还留着地址的表单仍算占着这个地址;③读取旧开关的那段逻辑多留一个大版本;④迁移源码时,凡是声明了「覆盖应用自带表单」的定制一律搬进新类型,哪怕它盖的其实是一张记录表单(之后校验会报错要求作者删掉,不会长期留着);⑤「靠盖住来关闭公开地址」的那段读取逻辑在下个大版本之后也和旧开关的读取逻辑留得一样久,这超出了你点名豁免的范围;注意:你后来对「两类特殊的旧存储行」的裁决正是靠这一条才不会让已关闭的表单打开,划掉这一条等于把那个问题重新交回给你。
  • 另外四件要你知道(前三件不是越过裁决,但会影响管理员;第四件是你已经裁决的):迁移时如果同一张表单有一份现在没人读到的「关闭」定制,迁移会把它带过去,这张表单迁移后变成关闭,报告会点名,管理员在 Setup 里再打开即可;从新类型上线起,管理员不能在应用自带表单的同名位置再存一个不属于任何应用的列表(单独存或夹在一组视图里存都一样),换个名字或存进自己的应用即可——这是「同名的列表和表单互不冲突」的一个例外,它会一直保留到「靠盖住来关闭公开地址」的那段读取逻辑被拿掉为止,不止到 19 大版本;其中少数存法今天是存得进去的(比如应用没有配套的定制包、或同名内容由几个应用同时提供时),所以第二张实施卡要按「收紧」而不是「纯新增」来声明;如果某个环境里有一张不属于任何应用的表单,今天就被自己应用里的同名列表挡着、没有任何入口读得到它,那么新类型上线后它照样不提供服务,迁移也不搬它;「两类特殊的旧存储行怎么处置」你已裁决为「不考虑」,文档已照此写定:这两类行(盖在应用公开表单上、自己却不带表单的旧行;被同名列表挡着、没人读到的无包表单)不做专门处置,迁移不搬它们,升级到 19 大版本也不为它们卡住,原样留着;只要上面第⑤条保留,今天关着的公开表单就不会因此打开(你已用「同意」确认过这个读法)。

What changes

  • New record, ADR-0159 (Proposed): forms leave view for a form metadata type. It settles every bullet of the card's design step:
    • D1: the kind passes ADR-0088's admission test on three consumers that exist today (the anonymous form doors, an action of type form, Setup's public-forms list). A record create or edit form is not form content.
    • D2 and D3: the shape (name, object, the form body at the top level) and the name space (OBJECT.KEY, the name a form is served under today; one object binding, one rung). D2 also gives the *.form.ts file suffix to the new type and moves the 17 Studio metadata-form modules to *.metadata-form.ts in card ②. That step follows question 1 by the owning seat's routing, not by the ruling's words, and the record says so.
    • D4: form joins ADR-0146 D2's overridable types. The classification row lands with the registry row in card ②, which the pin in packages/spec/src/kernel/customization-package.test.ts forces. No code is edited here.
    • D5: adding the type is additive, with one write narrowed. One projection reads the three old shapes; view reads are unchanged until the major, and old-shape writes save as before with the one exception below. A form write removes form content only and never a list row of the same name. A stored old-shape row keeps replacing its base's form when the base moves its source to the new type: the form read resolves over both types in the one served-row order. A stored view row that carries no form at a form's name is read as written over the form only in three bindings (a declared override, a row bound to a read-only package, a package-less row). Two are closed by a write door that exists today. The third is closed by one refusal card ② adds, kept as long as rule 11's replacement check is kept: every package-less view write that would store a list at a name a read-only package authors as a form item, as an item or through a container's expansion, whatever the state of the base's pair. The trigger is a form the package authors, not one projected from an old shape. Some of the refused saves are admitted today, and the record says which. For the served form read the projection reads served rows only, so a package-less form that no layer reads today, behind a writable package's list of the same name, stays unserved. "Served" is asked at each package's address, in the form read's own resolution over both types, and never taken from the effective view list: a package-less row that stands over a read-only package's form stays the served body there, whatever a writable package holds at the name. A list saved in a package beside the form is a list and closes nothing.
    • D6: the anonymous doors and the withdrawal judgement read both types, so a form switched off in either type stays closed. Identity is the served name and, inside one name, the whole item. Rule 11 (added in an earlier patch round): a stored row that closes an address by replacing its base's body (no withdrawal of its own) keeps closing it across the two types. Eight pins, each with an ablation that can turn red, are owed by card ②.
    • D7: the old shapes are tombstoned only in protocol major 19, with an ADR-0087 conversion and os migrate meta for sources and a ceremony for stored rows, .custom overrides included. A form that declares a public link is never an internal record form, switched on or off: it moves with its switch (D7-a). A stored row over a base form that declares a link is classed by its base and never by its own body: it moves with the base and no report or precheck offers its removal (D7-b). Several stored rows of one form fold into one: the body kept is the one the served-row order serves today, whichever binding it has, and every other row carries over a withdrawal and nothing else (D7-d). The served row is found among every stored row at the address, form or not: where it carries no form, no row of that name is moved; by the later ruling these rows stay as stored and none of them holds the upgrade. A row bound to a read-only base has the pair as its destination. A stored row whose customization pair cannot be ensured holds the upgrade, and the precheck names the row and the action for its cause, including the causes only the App's author can remove (D7-c). A table names, for every way a stored row keeps an address closed, the rule that carries it through dual-read, conversion, ceremony, precheck and after the major. Security pins are named for card ⑤, each with its ablation.
    • D8: a forms translation family; the form tails under an object's view translations are the fallback until the major. The label and description keys there are shared with lists and are neither moved nor read as a fallback.
    • D9: Setup's page kept and re-pointed; the paused designer re-hosted as the form editor; the Studio Developer page retired; what the generic metadata surface covers and what stays dedicated.
    • Execution plan: cards ① to ⑤ with Metadata-protocol: per step (none, narrowed, none, none, narrowed). Card ② adds the type and narrows one write: its refusal of a package-less list at a form's name refuses some saves that are admitted today. Card ④ now runs after card ③, not beside it.
    • Five merge questions where the first ruling is silent, each with options on the four fixed axes. All five are ruled, option A (ruling record 7131569242, the maintainer's words 「表单拆成独立 form 元数据类型的 5 个合并问题 都同意」). Each question keeps its options and table, and ends with its ruling, what it asks of the cards and a Ruling-ref: line:
      • Q1: defineForm is the form type's factory; the Studio helper is renamed defineMetadataForm, both in card ②. Card ② measures outside use first; if any is found, the fallback (a new factory name, never a dual-meaning overload) returns to the maintainer. The rename's scope is counted from the tree (41 code files), not from the table as put.
      • Q2: a form keeps the OBJECT.KEY name. No rename.
      • Q3: the form write door, os validate and publish refuse a form whose open public address another form holds. New type only. Outside the ruled block, the record reads "holds" as fail-closed: a switched-off form that keeps its link still holds its address. It says what that refuses that is served today (a retired form that keeps its link beside its successor on the same address) and the way out.
      • Q4: the reader of old-shape withdrawals is exempt from ADR-0087's kit age-out. It leaves only by a release whose upgrade precheck refuses a deployment still holding an old-shape form row; major 19's upgrade carries that precheck. Outside the ruled block, the record adds its own narrowing: card ⑤ keeps the reader through major 19.
      • Q5: name, object and the form body keys at the top level.
    • Status stays Proposed: the record's own Status line says it becomes Accepted by an authorized approval or the maintainer's merge of this PR.
  • ADR-0017 amended: a dated pointer on the Status line and a note at the item bullet. viewKind is list-only from major 19. Nothing about lists changes.
  • ADR-0146 amended: a dated pointer on the Status line and two sentences in D2's "Which types" (form is on the list from the change that adds the type; a view override of a form stored before that change is the same override, moved by ADR-0159 D7's ceremony).
  • docs/adr/README.md regenerated by node scripts/adr-index.mjs (one row, the counts).

Read first, by risk:

  1. ADR-0159 D7: the bullets marked D7-a and D7-b, the table "What keeps a public address closed today, and the rule that carries it", and the list "Security pins card ⑤ owes". Risk hunk: the test that decides whether a stored form is moved or offered for removal. It is the public link of the form and of the base it stands over, not the on/off switch and not the row's own body alone; the wrong test removes the row that keeps a public address closed.
  2. ADR-0159 D6 rule 11 with D5's bullet "A stored old-shape row keeps replacing its base's form", on the anonymous doors. Then rule 6 and the fourth pin: identity is the served name; the slug match decides no case in this layer.
  3. The five places that go past the ruling's words, each marked and outside every ruled block, listed in TL;DR 10:
    • D2's file suffix (the seat's routing on question 1);
    • the paragraph after question 3's Ruling-ref: line (the reading of "holds");
    • the first paragraph after question 4's Ruling-ref: line (the reader kept through major 19);
    • D7-b's source-conversion bullet: an item that declares overrides is moved to forms[] whatever its body, past ruling item 3. os validate refuses the one whose base ships no form of that name. The alternative not taken is named there;
    • D7, the paragraph after "After the major", with the second paragraph after question 4's Ruling-ref: line: rule 11's replacement check keeps the withdrawal reader's lifetime, past the "this one reader" scope of question 4. The alternative not taken (ADR-0087's clock) is named there.
      Four more things are named in TL;DR 10 beside them. Three touch no ruled word: D7-d's fold closes a form that is open today where a row no layer reads withdraws it; from card ②, and for as long as rule 11's replacement check is kept, a package-less list is refused at a name a read-only package authors as a form, and some of those saves are admitted today (card ② is narrowed); a package-less form that no layer reads today stays unserved and is not moved. The fourth is a later ruling, quoted in the last paragraph after question 4: the two kinds of stored row the migration cannot place get no disposition of their own.
  4. ADR-0159 D7-d, D5's bullets "served rows only" and on a stored view row that carries no form, and the last paragraph after question 4 (the later ruling, 「两类特殊的旧存储行怎么处置。不考虑」, confirmed 「同意」): the text of the last patch rounds.

Tests

None: the diff is four files under docs/adr/. No behaviour changed, so nothing was ablated.

Acceptance notes

  • Every position the card cites (read at 14f4d8f8) was read again on main at 62692b7f8b. The record's "Readings" table lists each one as holds or moved. Three corrections to the card's premises:
    • The Form-tab switch in the Studio design surface is not on main. It exists only in the paused draft PR, so its disposition is "not landed", not "retired".
    • The sibling card for the field-layout tab is closed (merged as 5c2d5cf2c4), so its public-forms item needs no new card.
    • The Setup data module has six type arguments and the page one list read, not about ten.
  • defineForm is already a published export with another meaning (schema-bound Studio metadata forms, 17 modules under packages/spec/src). The card does not mention it. It is merge question 1, ruled A.
  • No server door refuses a second form on a public address another form holds; the first in list order is served. It is merge question 3, ruled A.
  • The stored-row conversion pass cannot move a row between types, which is why the stored migration is a ceremony.
  • HotCRM was not re-read. The record repeats the card's count for it and says so.
  • Not filed, by rule: implementation cards ② to ⑤. Their texts are in the dev reports on the card; this round's report carries the changes to cards ②, ④ and ⑤.
  • Patch round on the two review records of head 352579004f9 (contract review 7132189584, seat record 7132202077). A merge of origin/main (689e5695b98, clean, no docs/adr path moved on main) and two commits on top, no rebase. They edit ADR-0159 only (53 insertions, 19 deletions). No ruled decision changes. What moved:
    • Must-fix from the contract review: D7 defined internal record forms by the lint rule's "is it switched on" test, so a switched-off public form in a default or create slot would have been deleted with its withdrawal. D7 now defines the set by D1's test (no public link) and names the pin card ⑤ owes for it.
    • D6's fourth pin asked for a match that rules 4 and 6 exclude. Rule 6 now says the slug match decides no case in the two-type layer, and the pin is replaced by one that can turn red (a same-name withdrawal with another slug).
    • Card ④ is blocked by card ③ as well as card ②: before card ③ the shipped console reads forms from view.
    • D7 gives the deployment whose customization pair cannot be ensured a remedy: the precheck's message and the administrator's action per cause. One case has no action in this version (a kernel package's form). It is measured empty at 689e5695b98 (no package that ships metadata authors a form in any of the three shapes), card ⑤ measures again, and a hit goes to the maintainer.
    • The file suffix (above), and card ②'s rename scope counted from the tree with its categories.
    • Nits: question 4's narrowing is moved out of the ruled block and marked as the record's own; the list-row edge of D5; the shared translation keys of D8; what "holds" means in question 3; what stays of the projection after the major; card ⑤'s pins named; this body's ADR-0146 bullet.
    • docs/adr/README.md was regenerated and came out unchanged.
  • Patch round on the two review records of head 9336492ee13 (delta contract review 7132974909, PASS with S3 open; seat record 7132988092, REWORK on S3). origin/main had not moved (57445a69981), so no merge. Two commits on top, no rebase, ADR-0159 only. No ruled decision changes: the ten Ruled: A and Ruling-ref: lines are byte-identical to the last head (same md5 over the extracted lines). What moved:
    • S3, the permission boundary. A stored override or package-less row with no public link of its own, over a base whose form declares an open one, is what keeps that address closed today: the override replaces its slot and the doors read the effective list only. D7 classed such a row as internal and had the precheck name its removal, while another bullet moved it. Now one rule (D7-b): a row over a base form that declares a link is classed by its base, moves with it by the conversion and by the ceremony, and is never offered for deletion or reset (D7-e). "Removing one is safe" is replaced by the exact set it holds for. Card ⑤'s first pin gains its twin (ablate the base half of the internal test; the pin turns red).
    • The break, tried again by the author across dual-read, conversion, ceremony, precheck and after major 19. Two more paths were found and closed in the text: (a) in dual-read, a package that moves its source to the new type would leave a stored old-shape row over nothing, because the overlay merge runs inside one type — D5 and D6 rule 11 now resolve a package's form over both types; (b) a package-less row that withdraws a form, beside an open override in the pair, closes the form today through the per-package layer and would be lost when both land on one destination — D7-d folds them, narrowing only. One class is parked with a fail-closed rule and no invented mechanism: a stored row that carries no form at a name its base ships as a linked form. Card ② measures whether any write door admits it; if one does, its disposition goes to the maintainer before major 19.
    • Nits: the full list of who spells the file suffix, with the text that must be re-worded and not re-pointed (emitted lint text, a pinned docblock, one docs page), the self-test's suffix assertion, the ../DIR/NAME.form importer and the comments of the i18n bundle check; the pair-refusal causes only the App's author can remove; question 3's reading of "holds" moved outside the ruled block as question 4's was, with the arrangement it refuses.
    • Readings of today's layers that were read from the code and not run are marked so in D7-d; card ⑤'s fold pin runs the first before the ceremony relies on it.
  • Patch round on the two review records of head be1c0cbd4da (delta contract review 7134054404, PASS with S4 and S5 open; seat record 7134079524, REWORK on S1 and S2). A merge of origin/main (305fe60e6e9, clean, no docs/adr path moved on main) and one commit on top, c74ae94fe1a, no rebase, ADR-0159 only (55 insertions, 14 deletions). No ruled decision changes: the ten Ruled: A and Ruling-ref: lines are byte-identical to the last head (md5 ce1a37ec97b8231d621ca355872475d9 over the extracted lines, before and after). What moved:
    • Contract S4. D7-d named two pairs of rows and missed a third: a row bound to a read-only base beside a package-less row. The served-row order was read again at this head (the pair's override, then the row bound to the package, then the package-less row). The bound row now has its destination (the pair), and the fold keeps the body the read serves today, whichever binding it has. Card ⑤'s fold pin gains that fixture and the writable-base twin.
    • Contract S5 with seat S1(a). D7-b's source-conversion sentence is marked as the record's own reading past ruling item 3, listed in TL;DR 10, with the alternative not taken. The grade is stated: os validate refuses an override of a form its base ships in neither type, the grade the override write gate gives today to a declaration of an item its base does not ship.
    • Seat S1(b). Rule 11's replacement check kept after major 19 is marked as the record's own reading past question 4's ruled scope, with its lifetime (the withdrawal reader's: it leaves in the same release, by the same precheck) and the alternative (ADR-0087's clock). The table no longer cites the ruled exemption for it.
    • Seat S2. The reading "the row was written over the form" contradicted D3 for a list saved after the package moved its form. It was bounded to three bindings. (That round's text said each was closed by a write door that exists today; the next round corrects it: two are, and the third is closed by a refusal card ② adds.) A list saved in a package beside the form is a list. One limit is stated as fail-closed: a package-less row that held the name before the package shipped anything under it. The disposition of a row of this class at major 19 is owed to the maintainer before major 19 opens.
    • Nits: Consequences name the fold's closing of an open form; "may close" is "closes"; card ②'s two pins for the row that carries no form and the fifth class in card ⑤'s precheck pin; the third string pin on the suffix in D2.
  • Patch round on the delta contract review of head c74ae94fe1a (7135096933, PASS with S6 and S7 open; the seat record at that head, 7134976464, is ACCEPT with nothing open). A merge of origin/main (d25d912d108, clean, no docs/adr path moved on main) and one commit on top, 737f6f288c4, no rebase, ADR-0159 only (23 insertions, 12 deletions). No ruled decision changes: the ten Ruled: A and Ruling-ref: lines are byte-identical (md5 ce1a37ec97b8231d621ca355872475d9, before and after). The count of points past the ruling's words stays five. What moved:
    • S6. The last round said the package-less binding was closed by ADR-0146 D11's write close, kept across the two types. That close is narrower than the text said: by its contract it refuses only where its ceremony would move the row. The record now says card ② adds one refusal of its own, which covers every package-less view write that would store a list at a form's name: an item and a container's expansion, a save and a draft's publish, whatever the state of the base's pair. It answers with the envelope of the container name-collision refusal it sits beside (VALIDATION_ERROR, 400), and its remedy works without a pair (another key, or an app of the environment's own). An expansion's list is on the same side as an item's: read closed when stored package-less before the refusal, a list beside the form when in a package. The sentence on the bound binding is corrected. Pin (a) gains the container fixture.
    • S7. D7-d did not say what the ceremony does when the served row carries no form and a form row stands behind it; moved alone, that form row would become the pair's override and the address would answer. Now the served row is found among every stored row at the address, and where it carries no form no row of the name is moved. Card ⑤'s fold pin gains the fixture.
    • Nits: TL;DR 10 says "several stored rows" and names the temporary refusal and the decision owed before major 19.
  • Patch round on the delta contract review of head 737f6f288c4 (7136181190, PASS; S6 and S7 closed, S8 and S9 open). A merge of origin/main (a73edb3cd78, clean, no docs/adr path moved on main) and one commit on top, 102c857d0e9, no rebase, ADR-0159 only (24 insertions, 12 deletions). No ruled decision changes: the ten Ruled: A and Ruling-ref: lines are byte-identical (md5 ce1a37ec97b8231d621ca355872475d9, before and after). The count of points past the ruling's words stays five. What moved:
    • S8. Card ②'s refusal refuses saves that are admitted today (several packages ship the name; the base has no pair; a re-save of a row its pair already holds; a container that overlays the package's own). The record now says so in D5, in the execution plan, in TL;DR 10 and in Consequences, with the door that remains. Card ② is Metadata-protocol: narrowed, by the rule that a value refused is narrowed and that several kinds take narrowed over added; that rule lets a narrowing ship in a minor with its banner and disposition, so the plan's shape does not change. The Clause-②: arm is left to the seat at claim. The ② and ⑤ bullets are reworded to match.
    • S9. No rule said what the form read or the ceremony does with a package-less row that carries an open form behind a writable package's list of the same name. D5 now says the projection reads served rows only, so that form stays unserved, as it is today. D7-d says the ceremony moves no row of the name and that the package-less row holds the upgrade, its disposition being part of the decision owed before major 19. Card ② gains a pin and card ⑤ a fold fixture, each with an ablation.
    • Nits: the refusal covers a rollback and does not judge a delete; its trigger is a form a package authors.
  • Patch round on the delta contract review of head 102c857d0e9 (7136878154, PASS with S10 open) and on the maintainer's ruling on the card (record 7136809727: 「两类特殊的旧存储行怎么处置。不考虑」). origin/main had not moved (a73edb3cd78), so no merge. One commit on top, a9b2da75f7a, no rebase, ADR-0159 only (36 insertions, 27 deletions). The ten Ruled: A and Ruling-ref: lines are byte-identical (md5 ce1a37ec97b8231d621ca355872475d9, before and after); the later ruling is quoted in a marked paragraph after question 4, outside the ruled blocks, with no new Ruled: line. The count of points past the ruling's words stays five. What moved:
    • The ruling. The decision the record left owed before major 19 is answered as the seat reads it in that record: the two kinds of row (a row that carries no form over a linked base, in a binding D5 bounds; a package-less form row no layer reads behind a list) get no disposition of their own. The ceremony does not move them, the precheck does not hold major 19 for them, and they stay as stored. Every "owed" and every "holds the upgrade" for these two kinds is replaced. Two things follow, and the record marks them as its own: rule 11's kept replacement check now covers the row that carries no form (it is what keeps that address closed after the major), and D5's bounded reading and card ②'s refusal last as long as that check, past major 19. Card ⑤'s pins drop the holds-the-upgrade assertions for the two kinds and keep the address-stays-closed ones.
    • S10. "Served rows only" did not say at which address the order is asked. It is asked per package address, in the form read's own resolution, never from the effective view list. The consequence sentence is scoped: a list saved into a writable package closes a package-less old-shape form only where no read-only package's address serves that row. D7-d says the same for the ceremony. Card ② gains the fixture the review names.
    • Nits: under narrowed the Clause-②: line carries the (narrowing) arm, and card ②'s one disposition marker is a registered entry or a category resting on a checked fact; TL;DR 3 and D5's heading carry the exception; "whichever withdrawal layer reads it today".
  • Patch round on the delta contract review of head a9b2da75f7a (7137988978, PASS with S11 open). A merge of origin/main (b01d8f97e97, clean, no docs/adr path moved on main) and one commit on top, d9a00e5acf5, no rebase, ADR-0159 only (15 insertions, 14 deletions). The ten Ruled: A and Ruling-ref: lines are byte-identical (md5 ce1a37ec97b8231d621ca355872475d9, before and after). The count of points past the ruling's words stays five. What moved:
    • S11. Three sentences still stated what the later ruling removed: that no deployment reaches the major holding such a row, that card ⑤ simply builds the alternative if the fifth point is struck, and that D7 gives the no-form row a disposition. Each is replaced by the review's own sentence; D5's list lead says two things in it last past the major.
    • Nits: the paragraph after question 4 cites the maintainer's confirmation (record 7137033870, 「同意」) beside the ruling record and no longer calls the reading open to correction; it says which rows the ruling names and which this record reads in, and what a later release owes; TL;DR 5 and Consequences say a row may be left as stored; striking the fifth point is said, where it is offered, to return the later ruling to the maintainer.

Verification

Head d9a00e5acf5. Local, the 21 families node scripts/pm/dispatch-gates.mjs --commands derives for this diff, all exit 0 on that head; --ran reconciled 21 derived, 21 run, 0 NOT-MEASURED, every line with its exit code. check:doc-formula-expressions was run after building the lint package and its dependencies under the shared lock. CI on this head when read: check-runs at this head when the seat landed it: 48, all completed, 26 success, 22 skipped, none failed (pr-state.mjs --pr 36957).

Exit codes, captured before any pipe
0  node scripts/check-adr-links.mjs --self-test
0  node scripts/check-adr-links.mjs
0  node scripts/check-closing-keyword-parity.mjs --self-test
0  node scripts/check-closing-keyword-parity.mjs
0  node scripts/check-comment-mask-corpus.mjs
0  node scripts/ci/plan-test-core-shards.mjs --self-test
0  pnpm --filter @objectstack/lint run check:doc-formula-expressions
0  pnpm check:adr-anchors
0  pnpm check:adr-index
0  pnpm check:adr-symbol-anchors
0  pnpm check:ci-filter-parity
0  pnpm check:closed-ceremony-text
0  pnpm check:cross-package-test-inputs
0  pnpm check:doc-authoring
0  pnpm check:driver-memory-census
0  pnpm check:gitlink-declared
0  pnpm check:nul-bytes
0  pnpm check:pm-governed-merges
0  pnpm check:pm-prior-rulings
0  pnpm check:refd-timer-probe
0  pnpm check:watch-hint-literal

Two-minute check: run node scripts/check-adr-symbol-anchors.mjs on the branch. Expected: exit 0, and no line naming the 0159 record. Every source position the new record cites is a symbol anchor the gate resolved against the tree.

Governed surface: docs/adr/** is Tier H. This PR stays draft; landing waits for an authorized approval or the maintainer's merge. skip-changeset: the diff publishes nothing from any package.


Generated by Claude Code

…17 and ADR-0146 D2

A new record for the form kind (admission, shape, name space, overrides,
dual-read, the anonymous doors over both types, the major-19 retirement and
its migration, translations, disposition of shipped work, card split), the
dated pointers on ADR-0017 and ADR-0146, and the regenerated index.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 24, 2026
One conflict, in ADR-0146's Status line: main's 2026-11-24 amendment (card
36891, the one-entry Studio) and this branch's 2026-11-24 amendment (ADR-0159
D4, `form` joins D2's list) each appended an entry at the same position. Both
are kept verbatim, main's first.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
…tion A

The maintainer ruled the five merge questions of ADR-0159 (ruling record
7131569242 on the card). Each question keeps its options and four-axis
table and now ends with its ruling, what it asks of the cards and a
Ruling-ref line; the cross-references in D2, D3, D6, D7, D10, the TL;DR
and the execution plan read as decided. Question 1's fallback (outside
use of defineForm found) returns to the maintainer. Status stays
Proposed: the record is accepted by the merge. No decision the ruling
did not touch is changed.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 352579004f99215bd5391dbe31a435349921dda3
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Inputs read: card #36868 body and its 6 comments (triage 7123170316, claim 7128843842, dev reports 7129798720 / 7130219321 / 7131979790, ruling record 7131569242); PR #36957 body, file list (4 files, all docs/adr/**) and the net diff against main (merge base 23d61fa68f); the check-runs on the head. Cited code was read on origin/main 144d368eac with git show, never built or run. Security-touching: yes is meant: D6, D7 and question 4 teach the anonymous form doors and the withdrawal kill switch.

Check-runs on the head, read twice, the second time just before this was written (48 runs): no failure. Completed success: Governed Surface Queue Guard, PR-body guards (both runs), Check Documentation Links, Check PR Size, Auto Label, filter, every Lint lane and Lint & Repo Gates, every Type Check lane and TypeScript Type Check, Plan Test Core shards, Test Core (1/10), Test UI, Dogfood Regression Gate. skipped by path filter: the build, UI, E2E, changeset and queue-verdict jobs. One still in_progress: the aggregate Test Core. NOT MEASURED: that one aggregate, reason: not finished at the second read; its only shard for this diff (1/10) is green.

① Derived judgments

  • The diff publishes nothing: four files under docs/adr/, no schema, no code, no generated output. Metadata-protocol: none and Clause-②: no on the PR body are right for this diff.
  • What the record declares for later cards, each judged against the card: adding the form type is added (card ②) — right, the card says "adding the type is added"; tombstoning the three old shapes is narrowed and only in a major (card ⑤, major 19; PROTOCOL_VERSION is 18.0.0 on main) — right; ③ and ④ none — right. The execution-plan table states Metadata-protocol: for each step, which the card's acceptance asks for.
  • Card ② also changes the meaning of a published export (defineForm, question 1 as ruled). The record names it a declared compiler-carried export break in card ②'s changeset. That is a card ② declaration, not this diff's; the seat confirms card ②'s Clause-②: line and title at claim, as dev report 7131979790 already notes.
  • docs/adr/README.md: one row and the counts (159 to 160 records, Proposed 7 to 8). Agrees with the new file; check:adr-index is inside the green Lint lanes.
  • ADR-0146 amendment: form joins D2's "Which types" from the change that adds the registry row. The pin is real: customization-package.test.ts (classifies every registry type / classifies nothing the registry does not hold) fails in both directions, so the row cannot land here and must land with the registry row. Right.
  • ADR-0017 amendment: Status pointer plus a note at the ViewItem bullet; lists untouched. Right.

② Semver level

skip-changeset is right: nothing under packages/ or ui/ changes, and no package publishes a byte of this diff. No changeset is owed.

③ Boundary flags

  • The five Ruled: A blocks against ruling record 7131569242, word by word:
    • Q1: faithful. Factory, rename to defineMetadataForm, both in card ②, declared compiler-carried break, premise measured before card ② lands, fallback is a new name and never a dual-meaning overload, and the fallback returns to the maintainer. "It is not the dev's or the seat's to take" restates "that fallback returns here for a word". The 17-module count holds on main.
    • Q2: faithful. OBJECT.KEY, ADR-0150 bucket 1 with view (D1's table on main lists view (object-derived) there), no rename.
    • Q3: faithful. Write door, os validate and publish; new type only. The option line adds "in the environment", which is the option as put in report 7129798720, not a widening.
    • Q4: the Ruled: A sentence is the ruling's own. The dev flagged two bullets under it. "Scope of the exemption" restates: the ruling exempts "the reader of old-shape withdrawals" and nothing else, so saying the age-out stands for everything else adds nothing. "What the exemption does not license" goes one step past the words: the ruling says the reader "leaves only by a release whose upgrade precheck refuses a deployment still holding an old-shape form row", and major 19 is literally such a release; the bullet says card ⑤ keeps the reader and that removing it "is a new decision". That adds a maintainer gate the ruling does not carry. It only narrows (more goes to the maintainer, the reader stays longer, nothing is licensed), so it is safe, but it is the record's own decision and should not sit under the ruling as if ruled. See N1. The "anchor in scripts/adr-anchors/" is likewise the record's mechanism, not the ruling's; fine as a card instruction.
    • Q5: faithful.
  • Card bullets, each settled? ADRs (0017, new record under ADR-0088, 0146 D2, 0084 unchanged): yes. Migration path: settled, with M1 open. Security-sensitive door: settled, with S1 open. Name space and object binding: yes (D2, D3). Translations: yes (D8), N3. Disposition of shipped and paused work, generic vs dedicated: yes (D9); the three premise corrections hold on main (six type arguments in publicForms.ts, lines 267/270/334/335/349/359; PublicFormsPage.tsx and nav_public_forms are on main). Card split and order: settled, with S2 open.
  • Dev flags: HotCRM not re-read — accepted, the record says so. Part of instead of a closing keyword — right, two seat acts remain. Status stays Proposed — right for Tier H.
  • SQL push-down: nothing in the diff reads data; no id materialisation, no in-app join. The stored-row ceremony is declared, not written; card ⑤ owes the check.
  • open_questions: none left open; all five are ruled.

④ Design judgment

Read on main to judge: anonymous-form-intake.ts (whole), form-routes.ts (the one resolution, 236 to 271), view.zod.ts (FormViewSchema 5411, ViewSchema 5971, ViewItemNameSchema 6115, ViewKindSchema 6168, ViewItemSchema 6450, ViewItemWireSchema 6650, expandViewContainer 8218, defineForm 8264 — the Readings table's numbers hold on today's main), validate-internal-form-views.ts, publicForms.ts, PublicFormsPage.tsx, FormPage.tsx, customization-package.test.ts, translation.zod.ts, i18n-walk.ts, ADR-0087 D2 and its 2026-10-26 addendum, ADR-0088, ADR-0150 D1.

ADR-0159 holds on most of what it was tried against:

  • ADR-0088: the three clauses are quoted as the record states them, and each rests on a consumer that exists on main (the doors in registerFormEndpoints, the action form member read by FormPage, Setup's page). The "no consumer, reported not refused" rule is consistent with the card's "qualifies only when an action opens it".
  • Dual-read, tried: withdrawn as a view override with an open authored form of the same name (rule 4, pin 1); the mirror (pin 2); a package-less overlay row holding the switch while a form save lands at another address (the view row stays in the layer, the form stays closed); a form save at the same address clearing the old row (same authority as today's switch, not a cross-layer re-open); an unreadable body (rule 7 closes). None re-opens. Shadowing selects the served body and never removes a body from the layer (rule 5): that is the sentence that makes it hold.
  • Name space: after the split a list and a form of one name are two types; until the major the container collision refusal still judges them where the old shapes are stored. No collision found. See N2 for the one destructive edge.
  • Stored rows: the claim that the stored pass cannot move a row between types matches applyConversionsToStoredItem's contract, so a ceremony is the right shape. .custom overrides, package-less overlay rows and history rows each have a disposition.

Findings:

M1 (must-fix) — D7 deletes a switched-off public form, and with it the withdrawal. D7 says internal record forms are not moved and "the set is the one form-view-internal-not-loaded already defines ... when the form is not public". That rule's one test for a public form is sharing.enabled === true (isPublicForm in packages/lint/src/validate-internal-form-views.ts). A form in the default slot (form, served as OBJECT.form with isDefault: true), formViews.default, formViews.create or named OBJECT.create that keeps its publicLink and has enabled: false is therefore "internal" by the cited rule — and that body is exactly an explicit withdrawal (anonymousFormExplicitWithdrawals), and exactly what Setup's switch-off writes (withSwitch(..., false) on the whole document, isDefault included). D7 then (a) has the source conversion delete it, so a package that ships a form off loses its per-package-layer kill switch and an open override of the same name is served; and (b) has the ceremony report it and leave it "for the administrator to delete", while the major-19 upgrade refuses until no old-shape form row exists — so the only way forward the record gives is to delete the row that holds the switch, and the app's own open form, moved to form, re-opens. This contradicts the neighbouring bullet ("a .custom override ... covers every switch Setup has written"), D1's own definition (a public form "declares a sharing.publicLink"), ADR-0087 D2's scope (losslessly mappable only), and question 4 as ruled ("No withdrawn public form may re-open"). Fix, prose only: in D7 define the internal set by D1's test — a form that declares a sharing.publicLink, switched on or off, is never internal and is moved with its switch, by the conversion and by the ceremony alike — and name the pin card ⑤ owes for it (a switched-off default-slot form: after conversion and after ceremony both doors still answer 404; ablate the publicLink test).

S1 (should-fix) — D6 pin 4 asks for what rule 6 excludes. Rule 6: "Matched by name, then by whole item or by slug", and rule 4 passes old-shape bodies through the projection first, so every body is judged under its served item name and its slot is the whole item. Pin 4: "withdrawn by slug after the open definition moved to another name (ablate: the slug match)". A definition under another name is, by rule 6 and by the module header on main ("Another row that publishes or withdraws the same slug is a different form and closes nothing"), a different form and is not closed. And once the slot is the whole item, a same-name withdrawal always matches by slot, so ablating the slug match turns no pin red. Card ② cannot satisfy pin 4 as written without either widening identity to slug-across-names or keeping container identity for projected bodies; the record must say which. Fix, prose only: state the case the slug match still decides after the projection (or say it decides none and drop the pin and the "slug match is kept" clause), so each of the seven pins has an ablation that can go red.

S2 (should-fix) — "④ may run beside ③" breaks the shipped console between the two. D5 freezes view reads to the old shapes only, and says the console moves to form in card ③. FormPage reads GET /api/v1/meta/view/:name and Setup's page lists type view (both on main). If ④ moves a first-party form to forms: before ③ lands, an action-opened form answers not found in the console and a public form drops out of Setup's list, so the administrator loses the switch for it. The card's own split is sequential and its acceptance asks for Blocked-by: lines in order. Fix, prose only: ④ Blocked by ③ as well as ② in the table, and strike or condition the "may run beside" sentence.

Nits (prose faces; no effect on the verdict):

  • N1 — question 4, "What the exemption does not license": mark "that removal is a new decision" and "Card ⑤ keeps the reader" as this record's decision (D7), outside the ruled block, since the ruling's words alone would let major 19 remove the reader.
  • N2 — D5's "a form write ... also removes the old-shape row that carries the same form at the same address": add to card ②'s pins that a form save at a name a list item of type view holds leaves the list row untouched (the shared OBJECT.KEY space makes this the one destructive edge).
  • N3 — D8 moves and falls back on title and submitBehavior only. _views.KEY.label and .description are declared for any view (translation.zod.ts); the extractor emits only the two tails for a form, so a hand-authored label of a form is neither moved nor read as fallback. Say so, or add them to the fallback.
  • N4 — question 3: say whether a switched-off form that keeps its link still "holds" the slug for the new refusal (fail-closed reading: it does).
  • N5 — D7 "After the major: the projection serves no content" beside rule 10: say that the withdrawal-reading half of the projection stays with the exempt reader.
  • N6 — D7 names "its security pins" for card ⑤ but lists none; D6 lists seven for card ②. Name ⑤'s (the ceremony keeps a withdrawal closed; the precheck refuses; the kept reader still closes after the tombstone).

ADR-0017 and ADR-0146 hunks: each agrees with ADR-0159 sentence by sentence (D5 projection, D7 schedule and ceremony, D4 row) and with the code they cite. The ADR-0146 sentence "until it is moved the anonymous form doors keep reading its withdrawal" is D6 rule 4. No finding.

docs/adr/README.md: generated row and counts agree. No finding.

For card ②, the ablation requirement is concrete: seven named pins, each with the read to remove, each asserting status, code and that no record was written. It is usable as written once S1 is settled.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 352579004f99215bd5391dbe31a435349921dda3 · 2026-11-24T12:59Z

First L1 on #36957 (card #36868, step ① of the form-metadata-type split). Read against GitHub and git at this head, not against the dev reports' own account. The diff (git diff 23d61fa68f3..352579004f9) is 4 files under docs/adr/, +452/−5. ADR-0159 is the abbreviation 0159 below. Line numbers are lines of that file at this head unless another file is named.

1. Shape

2. Premise measured

  • Card Acceptance, "ADR covers every design bullet". Each bullet maps to a decision:
    • ADRs: ADR-0017 amended (Status line plus a note at the ViewItem bullet). The new record passes ADR-0088's admission test on three consumers that exist today (D1, 0159:90–100). ADR-0146 D2 amended (Status line plus the "Which types" sentence). ADR-0084 needs no change (D10).
    • Migration: one projection reads the three old shapes (D5). D7 covers the ADR-0087 conversion, os migrate meta, and the stored-row and .custom migration as a ceremony. The reason: applyConversionsToStoredItem cannot change a row's type, and I confirmed that symbol at this head.
    • Security door: both types and every layer, narrowing only, with seven pins that each come with an ablation (D6).
    • Name space and binding: D3, and D2's one-rung binding.
    • Translations: D8.
    • Disposition of shipped and paused work: D9.
    • Card split and order: Execution plan.
  • Metadata-protocol: is stated per step in the plan table (0159:252–258): ① none, ② added, ③ none, ④ none, ⑤ narrowed. That matches the card ("adding the type is added", "tombstoned only in a major … narrowed").
  • Readings spot-checked at 62692b7f8b, all as the record states:
    • FormViewSchema 5411, ViewSchema 5971, ViewKindSchema 6168, ViewItemSchema 6450, ViewItemWireSchema 6650.
    • customization-package.ts:319 reads view: listed. PROTOCOL_VERSION = '18.0.0'.
    • Census: 256 files, of which 158 are tests.
    • publicForms.ts: six 'view' type arguments (lines 267, 270, 334, 335, 349, 359).
    • The Form-tab switch is absent from StudioDesignSurface.tsx on main.
    • Studio 对象页「表单」页签改成「字段布局」:只编辑对象的字段分组,不再读写表单视图;安装来的对象存到 .custom 的排布里 #36505 is closed/completed, and 5c2d5cf2c4 exists.
    • nav_public_forms and PublicFormsPage.tsx exist. KIND_COVERAGE exists.
    • The page registry row has exactly the flags D2 copies.
    • The pin in customization-package.test.ts:156 fails for a registry type with no row, as D4 says.
    • Every path#Symbol the record cites resolves at this head (scripted: file present and symbol present). The bare file names left are the card's own citations in the Readings table.
  • Ruling records: 7123091354 (设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444) and 7123091586 (Studio 对象页「表单」页签改成「字段布局」:只编辑对象的字段分组,不再读写表单视图;安装来的对象存到 .custom 的排布里 #36505) exist and say what Status, Decided-by and ADR-0017/0146 attribute to them.
  • The five rulings against 7131569242. Each Ruled: A block says what the ruling says:
    • Q1 (0159:291–294): the factory, the defineMetadataForm rename, both in card ②, a compiler-carried break. Outside use is measured first. Any fallback is a new name, never an overload, and "returns to the maintainer for a word".
    • Q2 (0159:312): OBJECT.KEY, bucket 1, no rename. Action targets, deep links, overrides and withdrawal identity keep working.
    • Q3 (0159:334): write door, os validate and publish refuse a form whose open slug another form holds. New type only, nothing narrows.
    • Q4 (0159:356): exempt from the ADR-0087 age-out. The reader leaves only by a release whose precheck refuses old-shape rows; major 19 carries that precheck. No withdrawn form re-opens.
    • Q5 (0159:378): body at the top level.
    • The seat's own note (card ② stays one PR, split only above 3,000 lines) is at 0159:261.
    • Each block carries the verbatim words and a Ruling-ref: to 7131569242. The patch removed the pre-ruling "fallback is B" sentence from Q1 in favour of the ruling's "returns to the maintainer". Both points are correct.
    • The one gloss beyond the ruling's words is at 0159:359; see nit N2.
  • PR body claims at this head are true: head 352579004f9, seven pins, the protocol sequence, ADR-0017/0146 hunks as described, README "one row, the counts", "edits ADR-0159 only", the three premise corrections, defineForm with 17 modules (counted: 17 *.form.ts call it). One overstatement: see nit N1.

3. Gates (check-runs)

  • pr-state.mjs --pr 36957, second read: 24 success, 22 expected skip, 0 unexpected skip, 0 failed, 1 pending (Test Core (1/10), in progress). mergeable_state blocked (draft, governed). Never queued. No reviews at this head.
  • The required floor at 352579004f9: Lint & Repo Gates success and TypeScript Type Check success. Also green: all eight Lint · lanes (including PM dispatch-gates), all four Type Check · lanes, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Dogfood Regression Gate.
  • The body's local list (21 families, --ran reconciled at 21/21/0) is pinned to this head. The one exit 3 is recorded as "prerequisite not met" and was re-run green; it is not counted as a pass. Nothing in the evidence is an API read that git could have answered.
  • landing-k.mjs: K = 9 < 15. No locale pack. No shared book moved under this PR's. OK.

4. Accepted deviations

  • Status stays Proposed after the fold. The record's own line makes it Accepted by an authorized approval or the maintainer's merge (0159:3). Main already holds 7 Proposed records, so this has precedent. Accepted.
  • Premise corrections carried in the record, not filed as cards, are accepted as the card's own re-read:
  • Findings. None is must-fix. The three should-fixes are cheap and are best folded in one patch round before the approval is requested:
    • S1 · should-fix · 0159:200 vs 0159:203 (D7), echoed in card ⑤'s proposed pins. A package-less overlay row whose pair "cannot be ensured … stays a view row, still read by rule 4 and rule 7". Three lines later, major 19's upgrade "refuses to proceed while a stored old-shape form row exists". As written, such a deployment can never upgrade, and D7 gives no remedy. Card ⑤'s pin "a stored old-shape withdrawal left behind (pair not ensurable) still closes its form" assumes the row survives. Both readings fail closed, so this is not a security hole. But it is an internal contradiction in the section the body asks the approver to read first. D7 should say what the precheck does with that row and what the administrator does about it.

    • S2 · should-fix · 0159:84 vs 0159:124 (D2). Line 84 records that both "the obvious factory name and the obvious file suffix" collide, but the rulings settle only the factory (Q1). D2 then gives the new type **/*.form.ts, which is the suffix the 17 Studio modules use. Repo tooling classifies by that suffix repo-wide: scripts/i18n-bundle-surface.mjs:96,113 (METADATA_FORM_MODULE_SUFFIX = '.form.ts', basename match). The cards should be told whether the Studio modules are renamed with defineMetadataForm or the tooling is narrowed to packages/spec. Otherwise card ②/④ will find out when an example's *.form.ts trips the i18n surface gate.

    • S3 · should-fix · 0159:293 (and the "as put" table at 284/287). Card ②'s rename scope is given as "the 17 *.form.ts modules … and the one file under ui/", which is "18 files". At this head git grep -lw defineForm finds 41 .ts/.tsx/.mjs files:

      • the 17 modules;
      • packages/spec/src/index.ts, ui/view.zod.ts and tsup.config.ts;
      • about 6 tests that call it;
      • comment mentions in packages/lint (4 sources), packages/cli/src/utils/config.ts:597, scripts/i18n-bundle-surface.mjs, and 2 spec system modules.

      The ui/ file is a test. The premise the ruling rests on (outside use is platform-internal) is unaffected. Correct the "For the cards" parenthetical so it does not scope card ②. The table can stay as the record of what was put, with a one-line correction note.

    • N1 · nit · PR body, "What changes", ADR-0146 bullet. It says "one sentence in D2's 'Which types'". The hunk (ADR-0146 line 382 at this head) appends two sentences.

    • N2 · nit · 0159:359. "a later release with its own precheck, and that removal is a new decision" goes beyond 7131569242. The ruling makes major 19's precheck sufficient. This is stricter and fails closed, so it is not a contradiction. If kept, it should read as the record's choice, not the ruling's.

5. Out-of-scope destination · Skills-docs:

  • Skills-docs: is not owed (kind none, no (narrowing) arm).
  • Report 7129798720 has four out-of-scope findings: the slug clash, the defineForm meaning, the stored pass not moving types, and ViewItemNameSchema not holding prefix equal to object. All four are carried into the record as Q3, Q1, D7 and D3, and are owed by card ②. None needs its own card.
  • The ADR-0150 D1 form row is routed to the open "ADR revisions" card (D10). That is a landing todo (item 6).

6. Landing clause

Seat — the L1 reading above was ACCEPT-grade; the verdict is REWORK because the contract review on this same head is FAIL. One patch round folds both records:

  • From the contract review (posted above): M1 — D7's "internal record forms" set is defined by form-view-internal-not-loaded (public test sharing.enabled === true), so a SWITCHED-OFF public form in the default/create slot counts as internal, is deleted by the conversion and the ceremony, and its withdrawal goes with it — the app's open form re-opens, against the Q4 ruling ("No withdrawn public form may re-open"). Define the set by D1's publicLink test and name a card ⑤ pin for it. S1 — D6 pin 4 asks for what rules 4 and 6 exclude; restate it so its ablation can turn red. S2 — card ④ runs after card ③ (Blocked-by: ③), not beside it.
  • From this record: S1 — D7's "cannot be ensured" row vs the major-19 refusal: give that deployment a remedy (or state the precheck's message and the admin action). S2 — the *.form.ts suffix collides like the factory name did; resolve it by Q1's own logic — the form type takes *.form.ts, the Studio metadata-form modules move to a distinct suffix in card ② — and SAY in the record that this follows Q1 by the seat's routing, not by the ruling's words, so the approver sees it. S3 — card ②'s defineForm rename scope: count from the tree (41 files at this head), not 18.
  • Nits for the same pass, no separate push: the contract review's N1 (Q4's "does not license" bullet reads as the record's own narrowing choice, not the ruling's) and N2–N6; this record's N1 (PR body: two sentences in ADR-0146 D2) and N2.
  • After the push: a delta L1 and a delta contract review on the new head; then the hand-off to the approver.

3525790

No ruled decision changes. Prose only, in one record.

- D7: the internal record form set is defined by D1's test (no
  sharing.publicLink), not by the lint rule's sharing.enabled test. A form
  that declares a publicLink, switched on or off, is never internal and moves
  with its switch, by the conversion and by the ceremony. Card 5's security
  pins are named, the switched-off default-slot form first.
- D7: a package-less row whose pair cannot be ensured holds the upgrade to
  major 19; the precheck names the row, the ensure door's refusal and the
  administrator's action per cause.
- D6: rule 6 states identity as the served name and the whole item; the slug
  match decides no case in the two-type layer; pin 4 is replaced by one whose
  ablation can turn red.
- D2: the form type takes the .form.ts suffix and the Studio modules move to
  .metadata-form.ts in card 2, marked as the seat's routing on question 1.
- D5, D8, questions 1, 3 and 4, the execution plan (card 4 after card 3):
  the nits of both records.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
…es, each fix named by the door

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9336492ee13651d99a77aebfadaa29d1d8b9f07d
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers 352579004f9..9336492ee13: a merge of main (689e5695b98), then 70d05f33fa0 and 9336492ee13. The two commits edit ADR-0159 only (+53/−19); ADR-0017, ADR-0146 and docs/adr/README.md are byte-equal to the head the earlier review read, and the merge moved no docs/adr path. The earlier review of this PR is at head 352579004f9 (record ID: 7132189584); the seat record at the same head is 7132202077 and folds it with its own items. Everything outside the delta stands as judged there.

Inputs read: card #36868's comments (ruling record 7131569242 and dev report 7132752955 in full), PR #36957's body and both PR comments, the delta diff, and the cited code with git show / git grep at 9336492ee13 and 689e5695b98. Nothing was built or run. Security-touching: yes is meant: the delta rewrites D6 rule 6, D7's test for which forms are deleted or moved, and question 3's holder rule.

Check-runs on the head, read twice, the second time just before this was written: 48 runs, all completed, none failed. 26 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, both PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 22 skipped by path filter or opt-in (build, UI, E2E, changeset, queue-verdict, upgrade harness, tarball smoke). The two runs that dev report 7132752955 listed as in progress have finished green.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right.
  • The execution table changes one cell: ④ is blocked by ② and ③. The per-step Metadata-protocol: values are unchanged (none, added, none, none, narrowed).
  • The delta adds one thing to card ②'s declared work: the 17 Studio modules change file suffix. That renames files inside packages/spec/src reached by import through the barrels and metadata-form-registry.ts; no published export name or entry point moves with it. The export break card ② declares is still the defineForm one, as ruled.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes.

③ Boundary flags

  • The five Ruled: A blocks against ruling record 7131569242. No Ruled: A line is touched by the delta (git diff -U0, zero changed lines carrying the words). Read again word by word at this head: Q1 (factory, rename to defineMetadataForm, both in card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1 with view, no rename, the four things that keep working), Q3 (write door, os validate, publish; new type only; nothing narrows), Q4 (exempt from the kit age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body keys at the top level). Each says what the ruling says. Q5's "There is no config wrapper" is option A as put, not an addition.
  • The three places that state the record's own reading:
    • D2, the file suffix. Neither a restatement nor a narrowing of the ruling: the ruling does not mention the suffix, and this is a separate routing by the owning seat (seat record 7132202077). The record says so in four places (TL;DR 10, Context, D2, Consequences), names the alternative not taken, and tells the approver it can be struck. It is not placed inside a ruled block; question 1's "For the cards" bullet only points at D2. It widens no permission and no published surface. Marked correctly.
    • After question 4's Ruling-ref:. An extension, and it only narrows: the reader stays through major 19 although the ruling would let it leave there, and its removal goes back to the maintainer. It now stands outside the ruled block and is repeated in D7 as the record's own choice. The anchor in scripts/adr-anchors/ is marked as the record's mechanism. Nothing to add.
    • Question 3, "What holds means". An extension that narrows: the ruling refuses a form "whose open slug another form already holds", and the record reads a switched-off form that keeps its link as a holder. That refuses more, on the new type only, and is marked as the record's reading. One consequence is not stated; see N3.
  • Dev flags of report 7132752955: the suffix spelling .metadata-form.ts is the dev's, the direction the seat's — recorded as such. The kernel-base case is not given an invented mechanism — right, see the seat-record item below. The PR body's quick-read names no review id yet — the seat's to write.
  • SQL push-down: nothing in the delta reads data.
  • open_questions: none.

④ Design judgment

Read to judge the delta: packages/spec/src/ui/anonymous-form-intake.ts (whole), packages/rest/src/form-routes.ts (findPublicFormView, resolveFormBySlug), packages/metadata-protocol/src/protocol-overlay-merge.ts (the override body replaces its slot), packages/metadata-protocol/src/protocol-customization-package.ts (the ensure door's refusals), packages/lint/src/validate-internal-form-views.ts (slots, isPublicForm), scripts/i18n-bundle-surface.mjs, the scripts/pm files that spell the suffix, and the git grep readings the record gives.

What the earlier review raised (record ID: 7132189584):

  • M1: closed. D7 now defines an internal record form by D1's test: a record-form slot, no sharing.publicLink, no type: 'form' action target. A form that declares a link is never internal, switched on or off, in whatever slot, and moves with its sharing block by the conversion and the ceremony alike. That test agrees with the code: anonymousFormExplicitWithdrawals counts a body only when it keeps a non-empty publicLink, so a body with no link holds no explicit withdrawal and deleting it deletes none. The precheck never offers deletion for a row that declares a link. Card ⑤'s five pins are named, the first being the switched-off default-slot form with the publicLink test as its ablation.
  • S1: closed. Rule 6 now states identity as the served name and, inside one name, the whole item, and says the slug match decides no case in the doors' layer. That is what the doors do today: both lists they judge come from the flattened read, a projected body has one slot, and the module header already says a definition under another name is a different form. The two callers the record names as still needing the slug match (organization-ownership-apply.ts, Setup's publicForms.ts) do pass container bodies as stored. The replacement pin can go red: a same-name withdrawal whose link names another slug closes the open definition only through the whole-item match, so making that match require an equal slug serves the form.
  • S2: closed. The table reads "② and ③", the "may run beside" sentence is replaced by the reason, both halves of ④ carry it, and card ②'s showcase item is a new form and not a move.
  • N1 to N6 of that record are folded as asked (the narrowing moved outside the ruled block; the list-row edge pinned in D5; label and description under _views said to be neither moved nor read; the switched-off holder; what stays of the projection after the major; card ⑤'s pins).

What the seat record raised (7132202077), by its own item numbers:

  • Its first item, the row whose pair cannot be ensured: closed. The row is not moved, is never written package-less, keeps closing through rules 4 and 7, and holds the upgrade; the report and the precheck repeat customizationPairEnsureRefusal's own text. The kernel-base case is measured empty and I get the same reading (git grep over the seven package groups finds one CHANGELOG.md; widened to every non-test source under packages/ outside packages/spec, the only hits are lint rules, the CLI, the protocol and the doors, none of them a shipped view). A hit before card ⑤ goes to the maintainer. See N2 for a third class the two bullets leave out.
  • Its second item, the suffix: closed, and marked as the seat's routing and not the ruling (above). The readers the record lists were each checked at 9336492ee13: 17 *.form.ts files, all under packages/spec/src; the one matcher in scripts/i18n-bundle-surface.mjs (METADATA_FORM_MODULE_SUFFIX, isMetadataFormModulePath, and the walk findMetadataFormModules built on it); scripts/pm/dispatch-gates.mjs imports the predicate and spells no suffix; landing-k.mjs calls it and holds one fixture path; 31 importers of ./NAME.form (seven barrels, the registry, 23 tests); seven export-origins files. No loader, build config or registry file pattern matches the suffix today. git grep finds more spellers than the list; none changes the routing. See N1.
  • Its third item, the count: closed. At 689e5695b98 git grep -lw defineForm names 60 files, 41 of them .ts/.tsx/.mjs; 17 modules, 3 declaring or building, 14 tests and 7 sources beyond them, 19 non-code (6 generated, 9 released or historical, 4 hand-written). The categories add up and each file I checked sits where the record puts it.
  • Its two nits are folded (the PR body says two sentences for ADR-0146; the question 4 narrowing is marked).

The break, tried again on this head. Can a public form that was closed re-open — in dual-read, by the conversion, by the ceremony, at the precheck, after major 19?

  • An explicit withdrawal (link kept, a switch false), in any slot, in a package source, a .custom override, a package-less overlay or a stored container: no. It is moved with its switch or stays a view row the exempt reader still judges; where the pair cannot be ensured it holds the upgrade and is never offered for deletion. Setup's own switch-off is this case.
  • A source left in place by the conversion (the data.object disagreement) is refused by the tombstone at major 19, so it closes and does not open.
  • One path is still open, and it is new text in this delta:

S3 (should-fix) — D7 calls the removal of a stored internal record form safe ("it steers nothing and, having no link, holds no switch"), and has the precheck name every such row with that action. That holds for a row that is the form's only body. It does not hold for a stored row over a base: a .custom override, or a package-less overlay, of a form in a record-form slot whose own body declares no link while the base's body declares an open one. An override's body replaces its slot (mergePackageAwareOverlay), and the doors take candidates from the effective list only, so that override is what keeps the base's form off the anonymous doors today — form-routes.ts says it in words: "the base's form the override removed — is not offered". By D7's test the row is internal (record-form slot, no sharing.publicLink, no action target), so the ceremony reports it, the major-19 precheck refuses until it is gone, and the one action named is to delete it. Deleting it serves the base's body again and the public address answers. The same row also falls under the bullet above it ("a .custom override of a form keeps its package, its name ..."), so two bullets give one row opposite dispositions. Graded below M1 for one reason: clearing the link is not an explicit withdrawal by the module's own definition, so question 4's ruled sentence is not contradicted in its own terms, and resetting an override is always the administrator's to do. But the record prescribes the step and calls it safe, on the anonymous door. Fix, prose only: in D7, a stored row over a base form that declares a sharing.publicLink is never internal whatever its own body declares; it is moved as the override it is, and the precheck does not prescribe its removal. Add its twin to card ⑤'s first pin (a link-less override of an open default-slot form: after the ceremony the doors still answer 404; ablate the base half of the test), and strike or qualify "Removing one is safe".

Nits (prose faces; no effect on the outcome):

  • N1 — D2's list of who spells the suffix is short in three places. scripts/pm/dispatch-gates.self-test.mjs has more than two cases (lines 5641 to 5691, one of them an endsWith('.form.ts') assertion on the live walk). Emitted lint text, not comments, teaches *.form.ts as the metadata-editing form that binds data: packages/lint/src/rule-explanations.ts (the data root explanation), the validate-visibility-predicates.ts wording that validate-visibility-predicates.test.ts pins by string, and validate-expressions.ts. Once the suffix belongs to the new type that text teaches the wrong root for an app's lead.form.ts, so it is re-worded, not re-pointed. One published page does the same (content/docs/protocol/objectui/layout-dsl.mdx, the "Metadata-editing forms (*.form.ts)" row). Card ② counts again at its head; name these so the count starts from them.
  • N2 — D7 splits the pair refusals into "a cause the administrator can remove" and "a kernel base". The ensure door has causes that are neither: a base namespace too long or invalid for a pair namespace, or a non-SemVer version, on an installed package the administrator does not author. Say what that deployment does (it stays on major 18 until the base ships a fix or is uninstalled; the row keeps closing meanwhile).
  • N3 — question 3, "What holds means": state the consequence for an arrangement that works today. A retired form that keeps its link, switched off, beside its successor open on the same address is served today (another name is another form). Once both are form items the successor's save and os validate are refused, the major-19 conversion's output included. The way out is in the message (clear the old form's link); say it where card ⑤'s conversion is described.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 9336492ee13651d99a77aebfadaa29d1d8b9f07d · 2026-11-24T13:32Z

Delta L1 on #36957 (card #36868, step ①). The previous record is the REWORK of 7132202077 at 352579004f9. I read the delta 352579004f9..9336492ee13 against git and GitHub at this head, not against dev report 7132752955's own account. 0159 below means the ADR-0159 file at 9336492ee13, and line numbers are lines of that file.

1. Shape

  • l1-face.mjs --pr 36957 (second read, 13:27Z): CLEAN, 13 items, none flagged. The PR is a draft against base main, and its first line is Part of #36868. No closing keyword binds 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 or any other card. There is no content/docs/releases/ path, no changeset and no NUL suspect. Clause-②: no and Metadata-protocol: none are both declared. skip-changeset stands: nothing is published. Skills-docs: is not owed.
  • Part of is still right. The card stays open for cards ②–⑤ and the seat's filing acts. I read the rewritten body by eye. The only issue number in it is the first-line #36868. Nothing in it places a closing keyword next to an open card: no negation, no bookkeeping sentence, no quote. (closes #36444 appears only in the ADR's plan table, not in the body.)
  • File surface: the net diff against main is still 4 files under docs/adr/**, +486/−5, unchanged from the claim. The delta itself touches only 0159: git diff --stat 352579004f9 9336492ee13 -- docs/adr gives 1 file, +53/−19. 70d05f33fa0 is +53/−19. 9336492ee13 is a one-line reword in D7. ADR-0017, ADR-0146 and README.md are byte-unchanged since the last head. That agrees with the body's "README regenerated and came out unchanged".
  • Merge of main (689e5695b98) is clean. Its parents are 352579004f9 and 57445a69981. git merge-tree --write-tree 352579004f9 57445a69981 gives 491bbcab1a11…, which is identical to the merge commit's tree, so the merge carries no hidden edit. git diff 352579004f9 689e5695b98 -- docs/adr is empty: main moved no ADR path. 57445a69981 is origin/main now, so the base is current. git merge-tree --write-tree origin/main 9336492ee13 is clean.

2. Premise measured: every fold item closed

From the contract review (7132189584):

  • M1, closed. 0159:201 defines an internal record form as one in a record-form slot that declares no sharing.publicLink and that no type: 'form' action targets. It names isPublicForm's sharing.enabled === true test (packages/lint/src/validate-internal-form-views.ts:85-87, confirmed at this head) as wrong for this purpose. 0159:202 says a form that declares a link is never internal, "switched on or off, in whatever slot", and is moved with its switch by both the conversion and the ceremony. 0159:216 has the ceremony's stored-row set use the same test. 0159:221 names the card ⑤ pin, a switched-off default-slot form, with the ablation "judge public by sharing.enabled === true". The dev's 4a and 5 card texts repeat the test and warn against taking the lint report as the deletion list.
  • S1, closed. 0159:174 restates rule 6 as served name plus whole item. 0159:175 says the slug match decides no case in the two-type layer, and gives the reason: the only case it decides is two same-name bodies under different members, i.e. a container as stored. I checked that against packages/spec/src/ui/anonymous-form-intake.ts:216-235 (w.slot === slot || w.slug === candidate.slug) and against the callers it names outside the layer (packages/cli/src/utils/organization-ownership-apply.ts:1664,1912, ui/packages/app-shell/src/views/setup/publicForms.ts:246). The old pin 4 is gone. Its replacement at 0159:186 is a same-name withdrawal with another slug, ablated by making the whole-item match require an equal slug. Today's code closes that case by slot match, so the ablation can turn the pin red. D6 still lists seven pins.
  • S2, closed. 0159:280: row ④'s Blocked-by is "② and ③". 0159:286 replaces "may run beside ③" with the reason: ui/apps/console/src/components/FormPage.tsx exists at this head, and Setup's page lists view. 0159:284 adds that the showcase's form item is a new form, not a move.
  • N1–N6, all folded:
    • N1: 0159:395, the narrowing sits outside the ruled block. 0159:227 repeats it in D7.
    • N2: 0159:162, a form write leaves a list row of the same name untouched. 0159:284 lists it among the pins card ② owes.
    • N3: 0159:239, label and description are not form tails. ObjectTranslationDataSchema is at packages/spec/src/system/translation.zod.ts:557.
    • N4: 0159:368.
    • N5: 0159:229.
    • N6: 0159:219-225, five pins.

From the L1 record (7132202077):

  • S1, closed. 0159:211-214: a row whose pair cannot be ensured holds the upgrade. The ceremony and the precheck both repeat customizationPairEnsureRefusal's text (packages/metadata-protocol/src/protocol-customization-package.ts:357, present) and give the administrator's action for each cause. The ADR says a package-less form row is ruled out by D2 together with ADR-0146 D11, and that matches the D11 "Close" bullet (ADR-0146:805-811). The kernel-base case is measured empty, and I re-ran the census at this head: it returns only packages/plugins/plugin-auth/CHANGELOG.md. A hit at card ⑤ goes to the maintainer. 0159:214 adds that the precheck never offers deletion of a row with a link. 0159:425 adds the consequence.
  • S2, closed. 0159:125 gives *.form.ts to the new type and moves the 17 Studio modules to *.metadata-form.ts in card ②. 0159:126 says this is the seat's routing and not the ruling's words, and names the alternative it did not take. The same mark appears at 0159:33 (TL;DR 10), 0159:84 (Context) and 0159:426, and in the body's quick-read "要你做什么". 0159:127 lists the readers. I confirmed scripts/i18n-bundle-surface.mjs:96,113, and that scripts/pm/dispatch-gates.mjs:442,516 imports the predicate without spelling the suffix. See N2 below.
  • S3, closed. 0159:312 adds a correction note under the table as put. 0159:318-324 counts card ②'s scope from the tree by category. I re-counted at this head:
    • git grep -lw defineForm gives 60, and 41 of them are .ts/.tsx/.mjs.
    • Of the 41: 17 modules, plus 3 that declare it (view.zod.ts, index.ts, tsup.config.ts), plus 14 tests, plus 7 sources. The 7 sources are 3 in lint/src, 2 in spec/src/system, cli/src/utils/config.ts and scripts/i18n-bundle-surface.mjs.
    • The 14 tests split as 4 that call or title it and 10 that only comment it. My call/comment split matched: 3 spec tests call it (pure-schema-construction.test.ts, form-option-enum-derive.test.ts, view.test.ts).
    • The 19 non-code files are 6 generated (5 packages/spec snapshots and content/docs/references/ui/view.mdx), 9 released or historical (7 CHANGELOG.md, releases/v17/17-0.mdx, the audit), and 4 hand-written (2 liveness files, the .claude/ skill, this ADR). All three numbers hold.
    • 17 *.form.ts files are in the tree, all under packages/spec/src.
    • 31 files import a .form module. See N1 below.
  • This record's N1, closed. The PR body's ADR-0146 bullet now says "two sentences". N2, closed. See the Q4 item under contract N1 above.

3. The five Ruled: A blocks against ruling 7131569242

  • The ten **Ruled: A and Ruling-ref: lines are byte-identical between 352579004f9 and 9336492ee13: same md5 (ce1a37ec…) over the extracted lines, without line numbers. They sit at 0159:316/327 (Q1), 343/347 (Q2), 365/370 (Q3), 388/393 (Q4) and 411/415 (Q5). Each still says what 7131569242 says:
    • Q1: factory, rename and compiler-carried break.
    • Q2: OBJECT.KEY, bucket 1, no rename.
    • Q3: the three doors, new type only.
    • Q4: exempt, leaves only by a precheck release, major 19 carries that precheck, no re-open.
    • Q5: top level.
    • Each Ruling-ref carries the maintainer's words verbatim.
  • What changed inside the blocks:
    • Q4 lost the "What the exemption does not license" bullet, which moved out to 0159:395 and is marked as the record's own.
    • Q4's "For the cards" (0159:390) now labels the anchor as the record's mechanism.
    • Q1 gained the correction note and the tree count.
    • Q3 gained "What holds means" (0159:368), labelled as the record's reading. See N3.
    • None of these changes alters a ruled sentence.

4. Gates (check-runs)

  • pr-state.mjs --pr 36957, second read: 26 success, 22 expected skip, 0 unexpected skip, 0 failed, 0 pending. mergeable_state clean. Never queued. No reviews at this head. My first read had 2 pending (Test Core, PR-body guards), and both went green on the re-read.
  • The floor at 9336492ee13: Lint & Repo Gates success and TypeScript Type Check success.
  • The body's local list is pinned to 9336492ee13: 21 families, all exit 0, and --ran reconciled as 21/21/0. The dev's own CI reading listed two runs as in progress and recorded them as NOT MEASURED, not as passes. That handling is correct, and both runs are now green. The evidence contains no API read that git could have answered.
  • landing-k.mjs: PRBASE is 57445a6998, read from Test Core (1/10) of run 45401064763 at this head. K = 0 < 15. No locale pack. Neither main nor this PR touches a shared book. OK. On the first read it said CAN'T ANSWER, because no Test Core shard had run yet.

5. Accepted deviations · findings

  • The dev chose the contract review's second S1 option: drop the slug-match pin and do not widen identity to slug across names. That is within the review's own offer. Q3's refusal, with a switched-off holder (0159:368), keeps a second form off the address. Accepted.
  • The suffix spelling .metadata-form.ts is the dev's. The direction was set by the seat. It is marked as routing, and the approver can strike it. Accepted.
  • Status stays Proposed, as before. Accepted.
  • No must-fix and no should-fix. The nits below are for card ②'s recount and need no push. Card ② counts again at its own head, and both N1 and N2 fail loudly there (compile or self-test):
    • N1 · nit · 0159:130 (and the card ② text). The ADR says "31 files … import a module as ./NAME.form". The count is right: 30 import via ./. The 31st, packages/spec/src/kernel/repeater-item-titles.test.ts:43-57, imports 15 modules as ../DIR/NAME.form. A sweep by the literal ./NAME.form spelling would miss it.
    • N2 · nit · 0159:128. "Two cases in dispatch-gates.self-test.mjs" undercounts. That file spells .form.ts on about 12 lines across several cases (5641-5691, 5881). The comments in scripts/check-i18n-bundles.mjs:163-170 name the suffix and are not listed. (scripts/ablation-dist-preflight.mjs:1158 uses skill.form.ts as a temp-repo fixture name only. It is not a reader.)
    • N3 · nit · 0159:368. Q3's "What holds means" is the record's own reading, as Q4's narrowing is. Q4's narrowing was moved outside the ruled block (0159:395), but this one sits between Ruled: A (365) and Ruling-ref: (370). It is labelled inline, so it cannot be misread. Moving it below 370 would match Q4's treatment.

6. Out-of-scope destination · landing clause

Seat — the L1 reading above is ACCEPT-grade; the verdict is REWORK because the delta contract review on this same head (posted above, PASS) leaves S3 open, and S3 sits on the permission boundary, so the seat takes the stricter reading and owes the fix before the hand-off.

  • S3 (from the contract review): a stored override or package-less overlay row in a record-form slot whose own body has no publicLink, over a base whose body declares an open one, is what keeps that public address closed today (the override replaces its slot; the doors read the effective list only). D7 must never class that row as internal, and the precheck must never prescribe deleting it: a stored row over a base that declares a link moves with it, by conversion and ceremony; add its twin to card ⑤'s first pin (ablate the base-link test → red). Reconcile the two D7 bullets that now give this row opposite dispositions.
  • Nits in the same pass: the contract review's N1 (the suffix-speller list — the self-test's endsWith('.form.ts') and the emitted lint text / docs page that teach *.form.ts need re-wording in card ②), N2 (state the outcome for the pair-refusal causes neither branch covers), N3 (Q3's holder reading refuses a today-valid retired-form-plus-successor pair once both are form items — say so); this record's N1–N3.
  • After the push: delta L1 and delta contract review on the new head, then the hand-off.

…g its base is classed by its base

Folds the delta contract review and the L1 record of head 9336492 (S3 and the six nits).

- D6 rule 11 and D5: a stored old-shape row keeps replacing its base's form when the base moves to form
- D7-b: a row over a base form that declares a link is never internal, moves with its base, and is never offered for removal; the two D7 bullets no longer disagree
- D7: the pair-refusal causes only the App's author can remove; two stored rows of one form fold narrowing only; the table of what keeps an address closed and the rule that carries it
- D2: the full list of who spells the suffix; question 3's reading of holds moved outside the ruled block, with what it refuses today

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 24, 2026
…e read from the code, not run

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: be1c0cbd4daacc84a0575b47a5e3168fbfb614bc
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers 9336492ee13..be1c0cbd4da: two commits, 86c83a2dd35 and be1c0cbd4da, ADR-0159 only (+67/−25). ADR-0017, ADR-0146 and docs/adr/README.md are byte-equal to the head the previous delta read. The previous delta review is at head 9336492ee13 (record ID: 7132974909); the seat record at that head is 7132988092 and folds it with its own three nits. Everything outside this delta stands as judged in the two earlier records.

Inputs read: card #36868's comments (ruling record 7131569242 and dev report 7133812384 in full), PR #36957's body and its four comments, the delta diff, and the cited code with git show / git grep at be1c0cbd4da. Nothing was built or run; every statement below about what the layers serve today is a reading of the code. Security-touching: yes is meant: the delta adds D6 rule 11, D5's cross-type resolution, and D7-b to D7-e on the anonymous form doors.

Check-runs on the head, read twice, the second time just before this was written: 48 runs, all completed, none failed. 26 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, both PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 22 skipped by path filter or opt-in. The two runs dev report 7133812384 listed as unfinished (Test Core (1/10) and the Test Core aggregate) have finished green.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right.
  • The execution table is unchanged by the delta. Card ② gains one pin (rule 11) and one measurement (whether a write door admits a row that carries no form at a form's name); card ⑤ gains the twin of its first pin and a fold pin. No per-step Metadata-protocol: value moves.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes.

③ Boundary flags

  • The ten Ruled: A / Ruling-ref: lines. Unchanged: the ten lines extracted at 9336492ee13 and at be1c0cbd4da are byte-identical (same md5, ce1a37ec…, the value the dev report gives); only their line numbers moved. git diff -U0 shows two Ruling-ref: strings, both in hunk headers as context, neither a changed line. Read again against ruling record 7131569242: Q1 (factory, defineMetadataForm, card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1, no rename), Q3 (write door, os validate, publish; new type only), Q4 (exempt from the age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body at the top level). Each says what the ruling says.
  • Question 3's reading of "holds" now stands after the Ruling-ref: line, marked as the record's own, with the arrangement it refuses and the way out. Nothing is left inside the ruled block that the ruling does not say.
  • Dev flags of report 7133812384, each answered in ④: the cross-type resolution (rule 11), the fold (D7-d), the parked class, the conversion sentence against ruling item 3, rule 11's half kept after major 19. open_questions: none.
  • SQL push-down: nothing in the delta reads data.

④ Design judgment

Read to judge the delta: packages/spec/src/ui/anonymous-form-intake.ts (anonymousFormExplicitWithdrawals, anonymousFormIntakeWithdrawnIn), packages/rest/src/form-routes.ts (findPublicFormView, resolveFormBySlug), packages/metadata-protocol/src/protocol-overlay-merge.ts (servedOverlayRowCandidates, servedViewExpansion, mergePackageAwareOverlay), packages/metadata-protocol/src/protocol-meta-list-reads.ts (readFlattenedMetaItems, the container expansion, the per-package layer), packages/metadata-protocol/src/protocol-customization-package.ts (every ensure refusal), packages/metadata-protocol/src/protocol-packageless-overlay-migration.ts (its header), and the files D2's new list names.

What the previous delta raised (record ID: 7132974909):

S3 (should-fix): closed

  • D7-b classes a stored row, or a .custom source item, that stands over a base form declaring a sharing.publicLink by its base and never by its own body. It moves with the base by the conversion and the ceremony, body as written. D7-e forbids offering deletion or a reset for it. The internal set is now three-part (no link, no action target, not over a linked base) in both places that define it, and "Removing one is safe" is replaced by a sentence that holds for that set only. The two bullets that gave one row opposite dispositions now agree.

  • The premise was read again: a body with no link holds no explicit withdrawal (anonymous-form-intake.ts, the publicLink guard), the override's body replaces its slot (mergePackageAwareOverlay), and the doors take candidates from the effective list (findPublicFormView). The quoted sentence of form-routes.ts is there as quoted.

  • Card ⑤'s first pin has its twin (a link-less .custom override over an open default-slot form, and the same body as a package-less row; ablate the base half of the internal test). It can turn red: classed by its own body the row is listed for removal.

  • D1's new sentence keeps the consumer-less warning off an override whose base's form has a consumer, so the lint does not invite the removal D7-e forbids. Consistent.

  • N1, N2, N3 of that record: folded. D2's list was checked at this head: dispatch-gates.self-test.mjs spells the suffix on nine lines (5641 to 5691, 5881), line 5662 is the endsWith('.form.ts') assertion; rule-explanations.ts:1161, the *.form arm in validate-expressions.ts, the two toContain pins at validate-visibility-predicates.test.ts:1686-1687, the row at layout-dsl.mdx:932, the comments at check-i18n-bundles.mjs:163-170. The pair refusals are split by who can remove the cause, and each cause named exists in the ensure door (not installed, namespace absent or unusable, not SemVer, several Apps, an installed package that is not the pair, a per-package pair holding the namespace, another owner). Question 3's consequence is stated in the question and where the conversion is described.

  • The seat record's N1 to N3 (7132988092): folded. The thirty-first importer (repeater-item-titles.test.ts, 15 specifiers of the ../DIR/NAME.form spelling) is named, the self-test count and the i18n comments are listed, and the reading of "holds" is outside the ruled block.

The new rule text beyond S3, each against the code it cites:

  • (1) D5 and D6 rule 11, the cross-type resolution: holds. The merge takes one type and buckets inside it, so a stored view row over a package that has moved its source to forms: would stand over nothing and the source form would be served; the rule is needed. The four ways the record lists for a stored row to stand over a base are the four the code has: the pair's declared override, the base's own row, the package-less row (servedOverlayRowCandidates, in that order), and a container expansion that writes the name (servedViewExpansion). A stored container that merely omits a form closes nothing today ("only a name an expansion writes is upserted"), so leaving omission out of the list is right. Narrowing D5's shadow rule to "inside one layer" is what makes rule 11 possible and opens nothing. The eighth pin can turn red by its named ablation.
  • (2) D7-d, the fold: narrowing only, and both readings of today hold on the code. The per-package layer passes no servedOverride (readFlattenedMetaItems: servedOverride = layer === 'effective'), so the base's slot there is its own row, else the package-less row; a package-less withdrawal under an open override of the pair is in the doors' withdrawal layer and closes the form today. For a writable base the package's own row is ahead of the package-less row in both layers, so that withdrawal closes nothing today, and the fold closes a form that is open today. That direction is the one a layer may take, the record says it and names the way back. See N2 for its wording and pin. One class the fold does not name is S4.
  • (3) The parked class: parking is acceptable, it is not a hole. A stored row that carries no form at a name its base ships as a linked form is closed at every stage by a stated rule: D5 serves nothing for the name from that package in dual-read, D7-c holds the upgrade, D7-e forbids offering its removal, the kept reader keeps closing a survivor. No stage opens the address and no mechanism is invented; the cost is an upgrade that waits for the maintainer if card ② finds a door that admits such a row. The same holds today inside one type (the list row replaces the base's form), so the rule changes no answer. See N1 for the pins.
  • (4) The conversion sentence against ruling item 3: it extends the ruling, it does not contradict it. Ruling item 3 says the record create and edit form stays on the object's fieldGroups and does not become a form item. The sentence moves an item that declares overrides to forms[] whatever its body and slot. Where the base's form is linked the moved item is a public form's override and item 3 is not touched. Where the base's form is an internal record form the conversion's output holds, for a time, a form item that used to be a record form's override. It is not the object's record form in the ruling's sense: the type carries no isDefault and no key that binds a form to a record page (D1, D2), so nothing renders it on a record, and os validate reports it as an override of a form its base does not ship. The other guess deletes a row that keeps a public address closed, which is S3. So the choice is the fail-closed one and D1's content rule stands. What is missing is the marking and one grade; see S5.
  • Rule 11's half kept after major 19: narrows only, marked as the record's own choice beside the ruled exemption, outside the ruled block. Nothing to add.

The break, tried once more on this head. Can a public address that is closed today answer — in dual-read, by the conversion, by the ceremony, at the precheck, after major 19? The record's table was walked row by row against the code. Five of its six rows hold as written. One path is open, and it sits in new text of this delta:

S4 (should-fix) — D7-d says the fold only narrows and names two pairs of rows: the pair's override beside a package-less row, and a writable package's own row beside a package-less row. A third pair exists and is not named: a row bound to a read-only base beside a package-less row. Such rows are real: before #28905 a save naming the code package stored the customization as a row bound to the base, and protocol-packageless-overlay-migration.ts carries that class by name (#29392). D7-b lists "a row bound to the base package" among the rows that stand over a base, but the ceremony bullets give it no destination of its own. Today the served-row order puts the base-bound row ahead of the package-less row in both layers. The ceremony moves the package-less row to the pair as a declared override, and the pair's override is first in the order, so the two rows change places. Take the base-bound row with no link over a linked base (closed today by replacement, rule 11) and the package-less row open (not served today): after --apply the effective read serves the open body, the per-package layer holds no explicit withdrawal of that name, and the address answers. No administrator act is involved; the ceremony does it. Where the base-bound row closes by a switch the per-package layer still closes it, so the open path is the replacement case only. Fix, prose only: name the read-only-base-bound row in D7's ceremony bullets with its destination (the pair, as the existing migration gives it); in D7-d say that when two rows of one form head for one destination the body kept is the one the served-row order serves today, whichever binding it has, and the other folds narrowing only; add the fixture to card ⑤'s fold pin (a link-less base-bound row beside an open package-less row answers 404 before and after; ablate the order the two rows are taken in).

S5 (should-fix) — the conversion sentence of D7-b goes past ruling item 3's words and is not marked where the approver reads the points that do. TL;DR 10 and the PR body's quick-read count three such points, each "accepted with the record or struck"; this is a fourth, on a ruling the record says is not re-opened, and it is labelled only inline. It also leaves one grade open: os validate "reports" the moved item when the base ships no form of that name, without saying whether that is a refusal or a warning. As a warning, a former record-form override may stay in forms[] for good, which is the reading of item 3 the maintainer should rule on, not the record. Fix, prose only: list it in TL;DR 10 as the record's own choice with the alternative not taken (leave the item in views[] with a structured TODO, as the data.object disagreement is left), and say what os validate does with the orphan (a refusal, or a warning with the reason). If the maintainer strikes it, the alternative is the fallback; the seat's quick-read carries the fourth point either way.

Nits (prose faces; no effect on the outcome):

  • N1 — the parked class has rules and no pin. D5's "nothing is served for that name from that package" is the dual-read half, and the natural implementation of a projection that finds no form is to fall through to the source item. Say that if card ②'s measurement finds a door that admits such a row, the same change owes a pin with an ablation for it. Card ⑤'s precheck pin lists four classes (movable, internal, pair not ensurable, body not readable); the must-run sentence lists a fifth (no form over a linked base). Name it in the pin.
  • N2 — D7-d says the fold "may close" a form on a writable base. By the served-row order it does close one that is open today. Say "closes", and give card ⑤'s fold pin the writable-base twin so the stated outcome (open before, 404 after, named in the report) is the one that ships.
  • N3 — TL;DR 10's "three points" is now short by the record's own marks: rule 11's half kept after major 19 and D7-d's closing on a writable base are each marked in place as the record's choice. List them or drop the count.
  • N4 — D2 names two toContain pins in validate-visibility-predicates.test.ts. A third string pin on the suffix sits at line 1904 of that file (the explanation's expected tokens). Card ② counts again; name it so the count starts from it.

Outside this diff, for the seat (read, not run; not reviewed here): the header of protocol-packageless-overlay-migration.ts says that when a package-less row and a base-bound row of one item both head for the pair, the move takes the package-less row first and keeps the other. That is the same change of places S4 describes, in the ADR-0146 ceremony that exists today, for a view row that carries a form. It may deserve its own card.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head be1c0cbd4daacc84a0575b47a5e3168fbfb614bc · 2026-11-24T14:14Z

This is a delta L1 on #36957 (card #36868, step ①). The previous seat record is the REWORK of 7132988092 at 9336492ee13, which was REWORK on the contract review's S3 plus nits. I read the delta 9336492ee13..be1c0cbd4da against git and GitHub at this head, and not against dev report 7133812384's own account. 0159 below means the ADR-0159 file at be1c0cbd4da. Line numbers are lines of that file.

1. Shape

  • l1-face.mjs --pr 36957:
  • Part of is still right: the card stays open for cards ②–⑤ and for the seat's filing acts. I read the rewritten body by eye. The only issue number in it is the first-line #36868. It contains no negation, bookkeeping sentence or quote next to an open card.
  • File surface:
    • Net diff against main: 4 files, all under docs/adr/**, +528/−5. That matches the API's additions/deletions.
    • The delta touches only 0159: git diff --stat 9336492ee13 be1c0cbd4da gives 1 file, +67/−25, which matches the body.
    • Per commit, 86c83a2dd35 is +67/−25 and be1c0cbd4da is +1/−1 (the D7-d "read, not run" reword).
    • ADR-0017, ADR-0146 and README.md are byte-unchanged since the last head.
    • There is no merge in this round, and history was not rebased.
  • Base:

2. Premise measured: S3 and the nits

S3 is closed in the text.

  • 0159:213: the internal-record-form set now has three parts: no sharing.publicLink, no type: 'form' action target, and not standing over a base form that declares a link.
  • 0159:215 (D7-b): a row over a base is classed by its base, never by its own body alone. It moves with its base by the conversion and by the ceremony, and nothing prescribes deleting it.
  • 0159:225: the .custom override bullet now says an override is never set aside as internal on its own body. The two bullets that gave the row opposite dispositions are reconciled.
  • 0159:233 (D7-e): neither the precheck nor the report offers deletion or a reset for such a row.
  • 0159:235: "Removing one is safe" is replaced by the exact three-part set it holds for, with a ⛔ for the excluded row.
  • 0159:254: card ⑤'s first pin has its twin, with the ablation "class the row by its own body alone".
  • 0159💯 D1's consumer-less warning is not raised for an override whose base form has a consumer.
  • 0159:465: Consequences.

I read the code the record cites for the premise at this head:

  • packages/rest/src/form-routes.ts:188-191. The record's quote spans the comment's line break and is faithful.
  • anonymousFormExplicitWithdrawals (packages/spec/src/ui/anonymous-form-intake.ts:156-175) counts a body only when it keeps a non-empty publicLink and a switch false. A link-less override therefore holds no withdrawal, and rule 11 (0159:189) is needed.
  • servedOverlayRowCandidates (protocol-overlay-merge.ts:173), mergePackageAwareOverlay (:371) and getMetaItemsPerPackage (protocol-meta-list-reads.ts:84) are all present.

Contract review 7132974909:

  • N1, folded (0159:128-136). I checked each new position at this head:
    • dispatch-gates.self-test.mjs spells .form.ts on exactly 9 lines (5641, 5643, 5646, 5647, 5662, 5674, 5684, 5691, 5881), and line 5662 is the endsWith('.form.ts') live-walk assertion.
    • The other positions: rule-explanations.ts:1161, validate-expressions.ts:1455 (*.form), the toContain pins at validate-visibility-predicates.test.ts:1686-1687, layout-dsl.mdx:932, and check-i18n-bundles.mjs:163-170.
  • N2, folded (0159:230-231, 464). The split by cause matches the refusals in customizationPairEnsureRefusal (protocol-customization-package.ts:357 ff.):
    • Removable by the administrator: not-the-pair, namespace owned by another package, App not installed, a per-package pair holding the namespace.
    • Removable only by the App's author: no, too-long or invalid namespace; a non-SemVer version; no_single_app.
    • The writable-base refusal is routed to D7-d (0159:227).
  • N3, folded. The successor pair that is served today is stated at 0159:409 (consequence), :212 (conversion and ceremony) and :466.

Seat record 7132988092:

  • N1, folded (0159:133). The 31st importer is named. repeater-item-titles.test.ts has 15 ../DIR/NAME.form specifiers, re-counted.
  • N2, folded. Same as contract N1 above.
  • N3, folded. Q3's "holds" paragraph left the ruled block. The old 0159@9336492:368 is removed, and the reading now stands at 0159:405-409, after Ruling-ref: (403), headed "This record's own reading … not the ruling's words".

3. The five ruled blocks against ruling 7131569242

  • The ten **Ruled: A / Ruling-ref: lines are byte-identical. I re-checked this:
    • grep -E '^\*\*Ruled: A|^Ruling-ref:' gives 10 lines at 352579004f9, at 9336492ee13 and at be1c0cbd4da, md5 ce1a37ec97b8231d621ca355872475d9 at all three. This agrees with the dev's ce1a37ec.
    • Including the "Ruled, all five" header (0159:329), the 11-line md5 is a717e553… at all three heads.
    • git diff -U0 9336492ee13 be1c0cbd4da | grep -E '^[-+].*(Ruled: A|Ruling-ref)' gives nothing.
    • Positions at this head: Q1 350/361, Q2 377/381, Q3 399/403, Q4 427/432, Q5 450/454.
  • Inside the ruled blocks:
    • The only change is the removal of the record's Q3 reading (seat N3). Q3 now holds only its ruled sentence and "For the cards".
    • No hunk falls inside Q1, Q2, Q4 or Q5.
  • Marking of the new rule text. These items are correctly marked:
    • D5's cross-type resolution and D6 rule 11 (0159:168, 189): new mechanism, not a reading of a ruled question, and named in the body's "Read first" item 2. Correct.
    • D7-d (0159:227): its two statements about today are marked as read from servedOverlayRowCandidates / getMetaItemsPerPackage and not run, with card ⑤'s fold pin to run the first. Its writable-base narrowing is stated. Correct.
    • The parked class (0159:218, table row 246): marked not measured, measured by card ②, and a hit goes to the maintainer before major 19, with no mechanism invented. Correct.
    • TL;DR 10 (0159:33) says three points go past the ruling's words. Each of the three is marked where it stands and sits outside its ruled block:
      • D2's suffix, 0159:125-126;
      • Q3's "holds", 0159:405;
      • Q4's narrowing, 0159:434.
  • The count of three is short by two. See S1.

4. Gates (check-runs)

  • pr-state.mjs --pr 36957, second read: 26 success, 22 expected skip, 0 unexpected skip, 0 failed, 0 pending. mergeable_state clean, never queued, no reviews at this head. The first read had 1 pending (PR-body guards), which went green on the re-read.
  • Floor at be1c0cbd4da: Lint & Repo Gates success and TypeScript Type Check success.
  • The body's local list is pinned to be1c0cbd4da: 21 families, all exit 0, --ran 21/21/0.
    • The dev's first check:doc-formula-expressions attempt exited 3 (PREREQUISITE NOT MET). It was recorded as NOT MEASURED and re-run green after the lint package build. That handling is correct.
    • The dev's CI reading listed Test Core (1/10) as in progress and recorded it as NOT MEASURED, not as a pass. It is now green.
    • The evidence contains no API read that git could have answered.
  • check-governed-merges.mjs --pr 36957: GOVERNED · Tier H (人合). All 4 paths are under docs/adr/**. The low-risk arm does not apply: a catalog file is added, and ADR-0017, ADR-0146 and the README each remove lines. Size is 533 changed lines, which is ≤ 3,000.

5. Accepted deviations · findings

Accepted:

  • The commits carry the model-free trailer pair that AGENTS.md requires, not the harness's model-named one. Accepted.
  • One with-fleet.sh --read was refused and the read went through a plain gh api GET instead; no write took that route. Accepted.
  • Status stays Proposed. Accepted.

PR body claims:

  • These are true at this head:
    • 4 files; the file list; delta +67/−25; net +528/−5;
    • D6 "eight pins" (0159:193-200);
    • the Q3 and Q4 "outside the ruled block" statements;
    • the md5 statement;
    • "README unchanged";
    • "origin/main had not moved (57445a6)", which was true when written. Main has since moved 2 commits, none under docs/adr.
  • Its quick-read "要你做什么" says 三处. That count is wrong with S1.

Findings:

  • S1 · should-fix · TL;DR 10 (0159:33) and the quick-read count "three points past the ruling's words". At least two more places go past the ruling's words, and neither is counted.

    • (a) 0159:216 (D7-b, the source conversion).
      • What the text does: an item that declares overrides is moved to forms[] "whatever its body and slot". In a record-form slot, over a base whose form has no link, that item is a record create/edit form. The card's ruling item 3 says such a form "does not become a form item".
      • How the record treats it: it argues conformance ("This does not make a record form form content"). It does not mark the sentence as its own reading.
      • The dev put this sentence to the seat in notes_for_the_seat 4.
      • Seat reading: it goes past the words. It is fail-closed and well-reasoned, so keep the mechanism, but mark it as the record's own reading of ruling item 3, for the approver to accept or strike, as the other three are marked.
    • (b) 0159:263 with the table at 0159:244 and :246 ("a survivor keeps replacing (D7-f)").
      • What the text does: rule 11's replacement half is kept after the major "with" the exempt reader, and the table attributes its survival to D7-f, the ruled exemption.
      • The conflict: Q4's ruled block scopes that exemption to "this one reader", the reader of old-shape withdrawals, and lets ADR-0087's age-out stand "for every other … the rest of this record's kit included" (0159:430). Rule 11's half is not a withdrawal reader (0159:189).
      • What is already done: 0159:263 marks the choice inline.
      • What is missing: it does not say whether that half ages out on ADR-0087's clock or shares the exemption. If it shares the exemption, it widens a scope the maintainer ruled by name.
    • Fix, prose only:
      • Mark (a) as the record's reading.
      • For (b), state the half's lifetime. Either it ages out on ADR-0087's clock (cite that, not D7-f, in the table), or it shares the exemption (mark it as going past Q4's ruled scope).
      • Make TL;DR 10's count match. The seat makes the quick-read "三处" line match.
  • S2 · should-fix · 0159:168 (D5, last sentences) with :218, table row :246 and :236. The parked-class inference contradicts D3 (0159:147).

    • D5 infers "the row was written over the form" from this condition: a stored view row that carries no form at a name that the package ships as a form item and no longer as a view item.
    • D3 makes a same-name list and form "items of two types [that] do not collide" after the split. D5's own :171 likewise treats a same-name list row as another item.
    • So once card ④ (or any package) moves a form to forms:, a list row an administrator saves at that OBJECT.KEY meets D5's condition. D3 admits that list.
    • servedOverlayRowCandidates puts the package-less row in the package's address order (protocol-overlay-merge.ts:183-187, read, not run). The record therefore reads that list as the parked class:
      • The package's public form is not served. This fails closed, so it costs availability, not security.
      • Under D7-c (:218, :236) the row holds the major-19 upgrade, pending a maintainer decision.
    • The read-time rule cannot tell a row written before the move from one written after it.
    • Fix, prose only: bound the inference. Any of these would do:
      • refuse a view save at a name a package ships as form until major 19, so the inference stays sound;
      • limit it to rows that predate the base's move or that declare the base;
      • exclude a package-less list row written after the move.
    • Add a card ② pin: a list row saved at the form's name after the move leaves the form served and does not hold the upgrade. Ablate the bound.
  • N1 · nit · Consequences (0159:464-466) do not name D7-d's writable-base narrowing (0159:227). The ceremony may switch off a public form that is open today. The administrator switches it on again in Setup. One line in Consequences would put that in the administrator's view.

There is no must-fix. S3, every earlier nit and the byte-identity of the ruled lines all hold. S1 and S2 are prose on new text of this round. S2 is fail-closed, and S1 is about disclosure to the approver. The verdict is REWORK because both sit on the surface the maintainer approves, and the landing condition below needs no open finding.

6. Out-of-scope destination · landing clause

Seat — one patch round folds this record and the delta contract review on the same head (posted above, PASS with S4 and S5 open):

  • CR S4: D7-d's fold misses a row bound to a read-only base beside a package-less row (pre-metadata-protocol: a save naming a read-only code package itself (?package=<base>) for an overlay type is still accepted and lands an overlay bound to the base #28905 saves, named migrate: rows bound to a read-only base package stored before the #28905 close are invisible to os migrate packageless-overlays, so their only exit drops the customization #29392 in protocol-packageless-overlay-migration.ts): the ceremony would swap their served order and can open a closed address on --apply with no administrator act. Give that row a destination, keep the body today's served-row order serves, add the fixture to card ⑤'s fold pin.
  • CR S5 + this record's S1(a): the D7-b source-conversion sentence (an item declaring overrides moves to forms[] whatever its body) EXTENDS ruling item 3 (it does not contradict it, per the contract review): mark it as a point past the ruling for the approver/maintainer to accept or strike, name the alternative, and state whether os validate's report on the orphan is a refusal or a warning.
  • This record's S1(b): rule 11's replacement check kept after major 19 vs Q4's "this one reader": mark it as the record's own reading and state its lifetime.
  • Correct the count of points past the ruling's words in TL;DR 10 and the PR body's quick-read (now five, each listed).
  • This record's S2: the parked-class rule vs D3 (a same-name list is not a collision): bound when the rule applies so a list saved at a form's name after the package moved the form does not read as written over it; add a card ② pin.
  • Nits in the same pass: this record's N1; the contract review's N1–N4.
  • After the push: delta L1 and delta contract review on the new head; then the hand-off.

…t the ruling are named, the no-form reading is bounded

Folds the delta contract review and the L1 record of head be1c0cb (S4, S5, S1, S2 and the nits).

- D7-d: a row bound to a read-only base has the pair as destination; several rows of one form fold into the body the served-row order serves today, narrowing only
- D7-b: the source conversion of an item that declares overrides is marked as this record's reading past ruling item 3; os validate refuses the one whose base ships no form of that name; the alternative is named
- D7, after the major: rule 11's replacement check keeps the withdrawal reader's lifetime, marked as past question 4's ruled scope, with the alternative
- TL;DR 10 lists the five points past the ruling's words
- D5 and D3: a stored view row that carries no form is read as written over a form only in three bindings a write door closes; the package-less close is kept across the two types until major 19
- pins for cards 2 and 5, Consequences, the third string pin in D2

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head c74ae94fe1ab5de6c18b79486bf58cf6eec4fa2d · 2026-11-24T14:48Z

Delta record over the seat's REWORK at head be1c0cbd4da (record ID: 7134079524). It covers be1c0cbd4da..c74ae94fe1a: a merge of origin/main 305fe60e6e9 (cb029b14991) and one commit, c74ae94fe1a, ADR-0159 only (+55/−14). Dev report: 7134847798 on #36868. Everything outside this delta stands as judged in the earlier records.

1. Shape

  • The PR against its merge base with main is still four files under docs/adr/ (+569/−5): ADR-0017, ADR-0146, ADR-0159 and docs/adr/README.md. The merge brought in main's own files only; it moves no docs/adr path and none of the code the ADR cites.
  • Clause-②: no, Metadata-protocol: none, skip-changeset: still right. Nothing under packages/ or ui/ changes.
  • Status stays Proposed. Landing tier: H (check-governed-merges.mjs --pr 36957).

2. Premise measured: S1, S2 and N1 of the previous record

  • S1 (should-fix): closed.
    • (a) D7-b's conversion sentence now stands as "this record's own reading" past ruling item 3, with the alternative not taken and what would happen if it is struck. os validate refuses the orphan as an error, so a record form's override cannot stay among the form items.
    • (b) "After the major" now states the lifetime of rule 11's replacement check (the withdrawal reader's) and marks it as past question 4's ruled scope. The alternative is ADR-0087's clock. The migration table no longer cites D7-f for it. Question 4 carries a second marked paragraph outside the ruled block.
    • TL;DR 10 lists five points past the ruling's words, each linked to where it stands, and names D7-d's newly-closing fold as a sixth choice that touches no ruled word. The PR body's quick-read lists the same five.
  • S2 (should-fix): closed. D5 now reads a stored view row that carries no form as written over the form only in three bindings, each tied to a write door: a declared override (declared_package_ships_no_such_item), a row bound to a read-only package, a package-less row (ADR-0146 D11's close, 403 NOT_OVERRIDABLE). Card ② keeps the package-less close shut across the two types until major 19. A list saved into a package beside the form is a list, stays out of the served-row order and holds nothing. Card ② owes two pins with ablations: the bound and the closed reading. D3 gains the matching sentence, and the migration table's fifth row and the precheck pin are re-scoped to the bound.
    • The record states the one limit honestly: a package-less row that held the name before the package shipped the form is read closed, as today inside one type. Its disposition at major 19 is owed to the maintainer before major 19 opens. The seat added that, and D7-d's newly-closing fold, to the PR body's quick-read as two things the approver should know.
  • N1 (nit): closed. Consequences names the fold that can switch off a form open today, and the package-less list refusal until major 19.

3. The ten ruled lines against ruling 7131569242

The Ruled: A / Ruling-ref: lines extracted at be1c0cbd4da and c74ae94fe1a are byte-identical (same md5). None is a changed line in git diff -U0.

4. Gates (check-runs)

At c74ae94fe1a: 26 success, 22 expected skip, 0 failed, 0 pending (pr-state.mjs --pr 36957). Locally the dev ran the 21 derived gate families; every one exited 0 (dispatch-gates --ran: 21 run, 0 not measured).

5. Accepted deviations · findings

  • Accepted: the model-free trailer pair on both commits; the dev fetched main into a private ref because another session moved the shared ref during the fetch; the worktree was removed clean after the push.
  • No must-fix, no should-fix.

6. Out-of-scope destination · landing clause

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c74ae94fe1ab5de6c18b79486bf58cf6eec4fa2d
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers be1c0cbd4da..c74ae94fe1a: the merge of origin/main (cb029b14991, first parent be1c0cbd4da, second parent 305fe60e6e9) and one commit on top, c74ae94fe1a, ADR-0159 only (+55/−14). The previous delta review is at head be1c0cbd4da (record ID: 7134054404); the seat record at that head is 7134079524. Everything outside this delta stands as judged in the earlier records.

Inputs read: ruling record 7131569242 and dev report 7134847798 on card #36868 (in full), the two records of the last head, PR #36957's body as replaced this round, the delta diff, and the cited code with git show at c74ae94fe1a. Nothing was built or run; every statement below about what the code does today is a reading. Security-touching: yes is meant: the delta changes rules on the anonymous form doors (D5's bounded reading, D7-d's fold).

The merge: git diff --name-only be1c0cbd4da cb029b14991 names 43 files, none under docs/adr/, and none that ADR-0159 cites (three changesets, plugin-approvals, ui/packages/app-shell views and tests, ui/packages/i18n, two ui/scripts files). ADR-0017, ADR-0146 and docs/adr/README.md are byte-equal to the last head. origin/main has moved again since (8c29b813114); that range names no docs/adr path and none of the three protocol files read below.

Check-runs on the head, read twice, the second time just before this was written: 52 runs, all completed, none failed. 27 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, three PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 25 skipped by path filter or opt-in. The two runs the dev report listed as unfinished (Test Core (1/10) and the Test Core aggregate) have finished green.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right.
  • The delta adds work to two cards and moves no per-step Metadata-protocol: value. Card ② gains the package-less close kept across the two types and D5's two pins; it stays added (a write that is refused today stays refused, nothing an author has today narrows). Card ⑤ gains two fold fixtures and the fifth class in its precheck pin.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes in the PR's own diff.

③ Boundary flags

  • The ten Ruled: A / Ruling-ref: lines. Unchanged. The ten lines extracted at be1c0cbd4da and at c74ae94fe1a have the same md5, ce1a37ec97b8231d621ca355872475d9, the value the dev report gives. git diff -U0 shows no such line as a changed line; two appear in hunk headers as context. Read again against ruling record 7131569242: Q1 (factory, defineMetadataForm, card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1, no rename), Q3 (write door, os validate, publish; new type only), Q4 (exempt from the age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body at the top level). Each says what the ruling says. No hunk of the delta falls inside a ruled block; the one new paragraph on question 4 stands after its Ruling-ref: line.
  • TL;DR 10. It lists exactly five points past the ruling's words: the file suffix (D2), "holds" (question 3), the reader kept through major 19 (question 4), D7-b's conversion sentence against ruling item 3, and rule 11's check against question 4's scope. Each is marked where it stands and outside every ruled block. D7-d's closing of a form that is open today is named after the five as one more choice, said to touch no ruled word, and not counted. The PR body's quick-read and its "Read first" item 3 list the same five and the same sixth. See N5 and N6.
  • Dev flags of report 7134847798 (its eight notes for the seat), each answered in ④: the option taken for the seat's S2, the stated limit, the lifetime chosen for rule 11's check, the grade chosen for os validate, the fold as one rule, the count of five, the PR body, the unchanged cards. open_questions: none.
  • The maintainer decision the record now owes: the major-19 disposition of a row that carries no form over a linked base. It is stated in D7, in Consequences and in the PR body's quick-read as owed before major 19 opens, whatever card ② measures. That is the right place for it; no mechanism is invented.
  • SQL push-down: nothing in the delta reads data.

④ Design judgment

Read to judge the delta, at c74ae94fe1a: packages/metadata-protocol/src/protocol-overlay-merge.ts (servedOverlayRowCandidates and its docblock, mergePackageAwareOverlay's options), the header of packages/metadata-protocol/src/protocol-packageless-overlay-migration.ts and its packagelessCloseSubject, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts (judgeOverrideWrite, packagelessOverlayWriteRefusal, namedBaseOverlayWriteRefusal, namedBaseCloseSubject), packages/metadata-protocol/src/protocol-write-gates.ts (the package-less close's contract), packages/metadata-protocol/src/protocol-save.ts (viewContainerNameCollisionRefusal), and packages/lint/src/validate-visibility-predicates.test.ts line 1904.

What the previous delta raised (record ID: 7134054404):

S4 (should-fix): closed

  • The row bound to a read-only base has its own ceremony bullet and its destination, the pair's declared form override, body as written. The class exists as the record says: the migration module's header carries "the rows bound to a read-only base" by name.
  • D7-d is now one rule for every set of rows, not a list of pairs. The body kept is the one the served-row order serves today, whichever binding. The order the record gives is the order in the code: with servedOverride, the pair's declared override, then the package's own row, then the package-less row (servedOverlayRowCandidates, the places array). The per-package layer passes no servedOverride, so it reads the bound row, else the package-less row; the record's two statements about that layer agree with it.
  • Every other row carries over its explicit withdrawal and nothing else: no link, no switch that is on. So the case S4 described (a link-less bound row over a linked base beside an open package-less row) keeps the bound row's body, and the address stays closed after --apply.
  • A folded withdrawal that no layer reads today closes the form newly. The record says so in D7-d, in Consequences and in TL;DR 10, with the way back.
  • Card ⑤'s fold pin has the fixture, and its ablation (take the package-less row first) turns it red. The writable-base twin is there with it.
  • The record says nothing about how any existing ceremony orders its rows, and this review adds nothing on that.

S5 (should-fix): closed

  • The grade is stated: os validate refuses, as an error, an item that declares an override of a form its base ships in neither type. The grade it borrows exists: judgeOverrideWrite returns a refuse verdict under declared_package_ships_no_such_item when the base is not among the shippers, thrown as 403 NOT_OVERRIDABLE.
  • "Ships" read over both types through the projection is consistent with D6's second pin: an override over a base still authored in an old shape passes.
  • The marking is the seat's S1(a), below.

Nits of that record:

  • N1: folded. D5 names two pins for the row that carries no form (the bound, and the closed reading), each with an ablation, and says pin (b) gains a second fixture if card ② finds a door for a declared one. Card ⑤'s precheck pin names the fifth class.
  • N2: folded. "may close" is "closes", and the writable-base twin is a fixture.
  • N3: folded. See TL;DR 10 in ③.
  • N4: folded. The third string pin is at line 1904 of the test file at be1c0cbd4da (MOVED, VISIBILITY_ROOT_MISLAYERED, *.form.ts), as the record now says.

What the seat record raised (7134079524), judged against the text and the code:

  • Its S1(a): met. D7-b's conversion sentence is headed as going past ruling item 3's words, as the record's own reading, for the maintainer to accept or strike. It says what the reading is (item 3 as the rule on what form content is, which does not move), why the item is carried (the conversion cannot see the base), and that it does not stay (the refusal above). The alternative not taken is named with its cost: left in views[], the override over a linked base is not shipped after major 19 and the base's form is served. The record says the fallback needs its own answer to that case before card ⑤ builds it. That is honest and enough.
  • Its S1(b): met. The paragraph after "After the major" marks rule 11's replacement check as past the scope question 4 rules. It states the lifetime (the withdrawal reader's: same release, same precheck), the reason, what it goes past, and the alternative (kit on ADR-0087's clock, leaving one major after major 19, which card ⑤ builds if the reading is struck). The table's cell no longer cites the ruled exemption. Question 4 carries a second paragraph outside its ruled block. The row that carries no form is excluded from it, consistently with D3.
  • Its S2: the bound is the right shape, and two of its three doors hold as written. A list saved in a package beside the form is a list, is in no served-row order of the base, and holds nothing. That is consistent with the code: the pair's candidate takes only a row that declares the override, so the pair's own undeclared item is never served as the base's.
    • Declared override: holds. The gate refuses a declaration of an item the base does not ship in that type, so no view override can be declared at the name once the package ships it as a form item.
    • Row bound to a read-only package: holds for the case the bound is about. After the move a view save naming the read-only base at the form's name is a new item in a read-only package, and it is refused. One sentence is loose, see S6.
    • Package-less row: the door exists, with the status and code the record gives. It closes less than the record says. See S6.
    • The stated limit: a package-less row that held the name before the package shipped anything under it is read closed too. That is today's answer inside one type (the package-less row is in every package's order, ahead of the package's source). It fails closed, it is stated, and its disposition is put to the maintainer. Acceptable.

The break, tried once more on this head. Can a public address that is closed today answer — in dual-read, by the conversion, by the ceremony, at the precheck, after major 19? The table was walked again against the code, with the new D5 bullet and the new D7-d. One path is open (S7). One claim about a door is wider than the door (S6); it fails closed.

S6 (should-fix) — D5 bounds the no-form reading by saying the package-less binding is closed by a write door: "ADR-0146 D11 closed the package-less write onto an item a read-only package ships", and a list saved package-less at a form's name "is refused, as it is refused today while the form is a view item". The door is not that wide. By its own contract (packagelessCloseSubject in the migration module, and the docblock of the close in protocol-write-gates.ts) the package-less write is refused for one class of row only and stays open for the rest: a name several read-only packages ship, a base for which no pair can be formed or ensured or that records no version, a container-shaped body, a stored row whose pair already holds the item, a body the override gate would refuse. So "kept closed across the two types" has two readings for card ②. If it extends today's close as it is, a package-less list can still be saved at a form's name in each of those cases after the package moved the form, and D5 then reads that list as written over the form: the form is not served and the row holds the upgrade. That is the seat's S2 again in the corners the door leaves open. A second gap is the container. viewContainerNameCollisionRefusal refuses a container whose expansion produces a name a package ships as a view item. Once the package ships the name as a form item that door admits it, and the D11 close does not judge a container body. D5's first bullet counts a container expansion among the rows that stand over a form; the no-form bullet does not say whether a list written by an expansion is in the reading. Nothing opens by any of this: the cost is availability and a held upgrade. Fix, prose only. Say what card ②'s cross-type refusal covers: every package-less view write that would put a list at a name a read-only package ships as a form item, a container's expansion included and whatever the state of the base's pair, with a remedy that works where the pair cannot be ensured; or keep today's scope and list the open cases beside the known limit as rows read closed. Say which side an expansion's list is on. Correct the sentence on the bound binding too: the close of saves naming the base also stays open for a base with no pair, so "stored before that door closed" is exact only for the name after the move. Give pin (a) a container fixture.

S7 (should-fix) — D7-d does not say what the ceremony does when the row the served-row order picks carries no form and a row behind it carries one. Take a row bound to a read-only base that holds a list at the name (the fifth class, a binding D5 bounds) and, behind it, a package-less row that holds an open form of that name. Today the bound row is served, nothing is served for the name from that package, and the address is closed; the package-less form is read by no layer. For the ceremony the record gives two rules that do not meet. The no-form row "has nothing to move" and "the ceremony writes nothing for it". The package-less row is a form row, and its bullet moves it to the pair as a declared form override, body as written. D7-d speaks of "stored rows of one form", and the no-form row is not one, so the package-less row folds with nothing. After --apply the pair's override is first in the served-row order, ahead of the bound row, and the address answers. The same holds for a declared view override that carries no form, if card ② finds a door for one, ahead of a bound or package-less form row: D5 lets a stored form row win over the view row at the same place. D7-d's own sentence, "a body the read does not serve today is never served by the ceremony", states the right outcome; no rule applies it to this set of rows and no pin holds it. The precheck does stop the upgrade for the no-form row, but the address is open from the --apply, before any upgrade. Fix, prose only: in D7-d say that the served row is found among all stored rows at the address, form or not; where it carries no form, no row of that name is moved, and every row of the name holds the upgrade with it (D7-c), named in the report. Add the fixture to card ⑤'s fold pin: a no-form row bound to the base, over the base's open form, beside an open package-less form row answers 404 before and after --apply, and the pair holds no row of the name (ablate: leave the no-form row out of the fold).

Nits (prose faces; no effect on the outcome):

  • N5 — TL;DR 10's last sentence says "the fold of two stored rows". D7-d now folds several, three over a read-only base. Say "the fold of several stored rows".
  • N6 — TL;DR 10 names one choice beside the five. Two more things of this round reach the approver only in D5, D7 and Consequences: the package-less view write kept refused at a form's name until major 19, which is a temporary exception to D3's "do not collide", and the major-19 decision owed to the maintainer. The PR body's quick-read names the second. One clause each in TL;DR 5 or 10 would put both where the approver reads first.
  • N7 — the PR body's D5 bullet and its S2 bullet repeat "each closed by a write door that exists today". They follow S6's fix; the seat owns the body.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 102c857d0e9f0290d174bb2647a49d2dca99da91
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers 737f6f288c4..102c857d0e9: the merge of origin/main (db3a72757d4, first parent 737f6f288c4, second parent a73edb3cd78) and one commit on top, 102c857d0e9, ADR-0159 only (+24/−12). The previous delta review is at head 737f6f288c4 (record ID: 7136181190). Everything outside this delta stands as judged in the earlier records.

Inputs read: ruling record 7131569242 and dev report 7136618721 on card #36868 (in full, with its replacement texts for cards ② and ⑤), PR #36957's body as replaced this round, the delta diff, AGENTS.md's Post-Task Checklist step 3, ADR-0087's text on a declared narrowing with the two gates that read it, and the cited code with git show at 102c857d0e9. Nothing was built or run; every statement below about what the code does today is a reading. Security-touching: yes is meant: the delta states which stored rows the anonymous form doors may serve.

The merge: git diff --name-only 737f6f288c4 102c857d0e9 names 58 files. One is under docs/adr/ (ADR-0159, by the commit on top). ADR-0017, ADR-0146, ADR-0087, docs/adr/README.md and AGENTS.md are byte-equal to the last head. None of the other 57 is a file ADR-0159 cites (its 75 cited paths were compared). Two directories the record names as holding citations each have one file moved, on other matter (docs/qa/platform-checklist/areas/platform-core.json, a settings count; ui/packages/app-shell/src/views/metadata-admin/previews/ObjectFormCanvas.test.tsx); no moved line there names a form shape, defineForm or the .form suffix. No file under packages/metadata-protocol/src and not packages/rest/src/form-routes.ts is moved. origin/main is still a73edb3cd78.

Check-runs on the head, read again just before this was written: 48 runs, all completed, none failed. 26 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, two PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 22 skipped by path filter or opt-in.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right for this PR.
  • Card ②'s step value is now narrowed, and that is right. AGENTS.md step 3: "a value refused or a requirement tightened is narrowed", "several ⇒ narrowed over semantic over added", and "The level follows the kind alone: a kind takes at least minor". So a narrowing is not held to a major. scripts/check-changeset-no-major.mjs reads Clause-②: no (narrowing) beside Metadata-protocol: narrowed at minor as clean, and ADR-0087 treats a declared narrowing as a breaking declaration that owes its banner, its FROM and TO text and one disposition marker. The dev's reading holds: card ② stays in a minor, the plan keeps five cards. Two details of that rule the card text does not carry yet are N11.
  • The per-step values agree wherever they appear. Execution table: none, narrowed, none, none, narrowed. TL;DR 9: ② adds the type and narrows one write, ⑤ is the major. D5: "So card ② is Metadata-protocol: narrowed". The ② bullet: narrowed and not added, with the reason. The ⑤ bullet no longer calls ⑤ the one card with a breaking banner. Consequences: "Card ② is narrowed for it". The PR body's execution-plan bullet gives the same five. The card ② text carries Metadata-protocol: narrowed, card ⑤ narrowed.
  • Card ④ stays none, and that holds. The kind is read off what a card's own diff changes in what an author can write. Card ④ moves sources, skills and docs; the rule that refuses is card ②'s. The record says where the refusal first bites for first-party names (card ④'s release) in D5 and in the ② bullet, which is the fact an approver needs.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes in the PR's own diff.

③ Boundary flags

  • The ten Ruled: A / Ruling-ref: lines. Unchanged. The lines extracted at 737f6f288c4 and at 102c857d0e9 (grep -E 'Ruled: A|^Ruling-ref:', ten each) have the same md5, ce1a37ec97b8231d621ca355872475d9. git diff -U0 over the delta shows none of them as a changed line. Read again against ruling record 7131569242: Q1 (factory, defineMetadataForm, card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1, no rename), Q3 (write door, os validate, publish; new type only), Q4 (exempt from the age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body at the top level). Each says what the ruling says. No hunk of the delta falls inside a ruled block.
  • TL;DR 10. Five points past the ruling's words, the same five. After them four further things that touch no ruled word: the fold that closes a form open today, the temporary refusal with its narrowing, the unread package-less form that stays unserved and unmoved, and the decision owed before major 19. The PR body's quick-read and its "Read first" item 3 name the same five and the same four.
  • Does the narrowing cross question 3's ruled sentence? No. "Nothing an author has today narrows" is ruled for question 3's refusal, on the new type. Card ②'s second refusal is on a view write and the record now names it as a narrowing in its own words, outside every ruled block, for the approver to accept or strike.
  • Dev flags of report 7136618721 (its seven notes for the seat). The classification and the minor: confirmed in ①. When it bites, and card ④: confirmed in ①. The fail-closed choice for S9, stated as a general rule: right choice; the general statement is one clause short, S10. The ceremony and the owed decision now covering two kinds of row: agreed, with N13. The count of five and four: confirmed. The PR body: read as replaced; N15. Cards ③, 4a, 4b unchanged: not re-read. open_questions: none.
  • The dev's first deviation (a merge that ran in the shared checkout and was undone) is outside this diff and is the seat's to read; nothing of it reached the branch reviewed here.
  • SQL push-down: nothing in the delta reads data.

④ Design judgment

Read to judge the delta, at 102c857d0e9: packages/metadata-protocol/src/protocol-overlay-merge.ts (servedOverlayRowCandidates with its docblock and ServedOverlayAddress; mergePackageAwareOverlay whole), the name-collision call sites of packages/metadata-protocol/src/protocol-save.ts, scripts/check-changeset-no-major.mjs and scripts/check-adr-0087-registration.mjs where they read a declared narrowing, and ADR-0087's amendment of 2026-11-12.

What the previous delta raised (record ID: 7136181190):

S8 (should-fix): closed

  • Route (a) was taken. The execution table gives card ② narrowed; D5 has a sub-bullet "It refuses saves that are admitted today"; the ② bullet says old-shape writes save as before "with one exception"; the ⑤ bullet is reworded; TL;DR 10 and Consequences carry "Some of these saves are admitted today".
  • The four cases are the same four in D5, the ② bullet, Consequences and the card ② text, and they agree with the code as read last round: a name several read-only packages ship; a base with no pair that can be formed or ensured; a re-save of a stored row its pair already holds; a container that overlays the package's own container by its own name.
  • The door that remains is named with them each time: another key, or an app of the environment's own. The cost is stated (no edit in place; a container refused at every re-save until the member is renamed).
  • The trigger is bounded: a form a read-only package authors in forms:, never a form projected from an old shape. So the refusal reads no name before a package's own release moves it.
  • The classification rule is read as the dev reads it (① above).

S9 (should-fix): closed

  • D5 chooses the fail-closed side and says it: for the served form read a stored view row is projected only where the served-row order serves it; a row the order passes over is served by no read. The named case stays at 404 on both doors from card ②'s release, as today.
  • The account of today agrees with the code. With a package, the order is that package's own row, then the package-less row (servedOverlayRowCandidates). mergePackageAwareOverlay resolves a name per package that holds a contribution there; with a writable package's own row at the name the package-less row is not emitted, so the effective view list holds the list.
  • The reason is the right one and is stated: the row is passed over; the list is not read as written over a form. D5's three-binding reading is untouched.
  • The stated consequence is true for the pair it is written about: a list saved into a writable package at the name of a package-less old-shape form takes the slot, as it does today in the one type. I found no check in the save door that judges a writable package's item against a package-less row of its name. A form item is not passed over by a view row of any name.
  • D7-d names the pair: the ceremony moves no row of the name (moved to the package's own form row the body would be served); the list is named for no action; the package-less form row holds the upgrade and is named in the report; its disposition joins the decision owed before major 19; no deletion is offered for a row that declares a link, and no save that would serve it.
  • Card ② has the pin with its ablation (project every stored view row; the address answers). Card ⑤'s fold pin has the fifth fixture with its ablation (fold the package-less form row into the package's own form row; the address answers). Both card texts carry them.

Nits of that record:

  • N8: folded. A rollback to a version that carries a list is covered; a rollback to one that carries a form saves; a delete is not judged.
  • N9: folded. "authors", in forms:; a projected form does not trigger the refusal.
  • N10: folded. The PR body's "Read first" item 3 names four.

The break, tried once more on this head. Can a public address that is closed today answer — in dual-read, by the conversion, by the ceremony, at the precheck, after major 19? The table was walked again with the new "served rows only" rule and the new D7-d bullet. For the pair the rule names, no. One case one package wider has two sentences that do not meet, and on one reading it opens: S10.

S10 (should-fix) — "Served rows only" does not say at which address the order is asked, and the consequence it states is too wide by one case; on one reading an address that is closed today answers. The served-row order is per package address: "that package's own row, then the package-less row, never another package's", and mergePackageAwareOverlay resolves each package at a name on its own. So one package-less row can be the served row at a read-only package's address and be passed over at a writable package's address, at the same name. The case: read-only package B's form crm_lead.all declares an open link; a package-less view row of that name carries a form with no link and stands over it, so B's address is closed today by replacement (D6 rule 11). B then authors the form in forms:. An administrator saves a list crm_lead.all into an app of the environment's own, which is the door card ②'s refusal prescribes, or into the pair as its own item. Three sentences now speak to the row. Unchanged: "the stored view row that order picks at the package's address is served … over the package's source form item", which keeps B's address closed. Unchanged: a list saved into a package "is not in the base's served-row order, the form stays served". New: "a list saved into a writable package after card ② at the name of a package-less old-shape form: the save closes that form", beside "A row the order passes over is projected into no served read, in any binding" and a case whose test is "the effective view list holds the list". Once B has left the view type, the only package at the name in the view merge is the writable one, so the effective view list drops the package-less row. An implementation that takes its served rows from the effective view list and projects those, which is the plainest reading of the bullet's title, no longer has the row at B's address. It serves B's source form item, and the address answers. Rules 4 and 5 do not hold this case; rule 11 says so itself. Every pin the record names stays green on that implementation: rule 11's package-less twin has no list in a package, pin (a) has no package-less form row, and the new pin has no read-only base. The gap is new with this delta's text; at the last head only the cross-type bullet spoke to the row. Fix, prose only. (1) In the bullet's lead say the order is asked per package address, in the form read's own two-type resolution, and is never taken from the effective view list: a row passed over at one package's address is still the served row at another's. (2) Scope the consequence: the save closes the package-less form where no read-only package's address serves that row; over a read-only base the row stays the served body of the base's form. (3) Say the same in D7-d's new bullet: "moves no row of the name" is the rule at the writable package's address; a package-less row that also stands over a read-only base's form keeps the destination or the hold D7 gives it at that base's address, stated either way. (4) One fixture on card ②, on the served-rows pin or on rule 11's: B authors an open form, a package-less view row with no link stands over it, a list of the name is saved into an app of the environment's own; both doors answer 404 at B's address before the list is saved and after it (ablate: take the served rows from the effective view list).

Nits (prose faces, or a pin note on a card; none changes an outcome):

  • N11 — Card ②'s declaration lines under narrowed. The record and the card text leave "the Clause-②: arm" to the seat. With narrowed the arm is not open: scripts/check-changeset-no-major.mjs reads narrowed beside a line without the (narrowing) arm as a contradiction, so only the yes or no is the seat's, and the arm carries the title's ! and the dogfood battery with it. And on a declared narrowing ADR-0087 (amended 2026-11-12) refuses the not-required (no-migration-prescription) category before the body is read, so the one disposition marker card ②'s changeset carries, for the export break and the refusal together, is a registered semantic entry or a category resting on a checked fact. One clause each in the ② bullet and in card ②'s "Done when".
  • N12 — The precheck's class list does not name the new row. D7's "must be run" bullet lists what holds the upgrade as "its pair cannot be ensured, its body cannot be read, or it carries no form over a linked base"; the precheck pin and card ⑤ item 5 count the same classes. The package-less form row behind a writable package's list holds the upgrade for a fourth reason. The general sentence ("while a stored old-shape form row exists") already refuses, so it fails closed. Pin note for card ⑤: the precheck pin gains the row as a class of its own, and its action is never "run the ceremony", which would not move it.
  • N13 — TL;DR 10's last item still names one kind of row for the decision owed before major 19. D7-d and Consequences now add the unread package-less form row; one clause in TL;DR 10.
  • N14 — D5 says a row the order passes over "stays in the withdrawal layer"; D7-d says a package-less row behind a writable package's own row "is read by no layer", so its withdrawal closes nothing until the fold. Say "in whichever withdrawal layer reads it today". Either reading only narrows.
  • N15 — Leftovers of "additive". The PR body's D5 bullet says old-shape writes "are unchanged until the major" and "ships as a form item" two sentences before it corrects both; TL;DR 3 and D5's heading call the step additive without the exception TL;DR 9 carries. The seat owns the body.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 102c857d0e9f0290d174bb2647a49d2dca99da91 · 2026-11-24T15:57Z

Delta record over the seat's ACCEPT at head c74ae94fe1a (record ID: 7134976464). It covers two patch rounds: 737f6f288c4 (folding contract review 7135096933: S6, S7, N5–N7) and 102c857d0e9 (folding contract review 7136181190: S8, S9, N8–N10), each on top of a clean merge of origin/main that moves no docs/adr path. ADR-0159 only. Dev reports 7135879309 and 7136618721 on #36868.

1. Shape

  • Against main the PR is still four files under docs/adr/. Clause-②: no, Metadata-protocol: none, skip-changeset: right for this PR. Status Proposed. Landing tier: H.

2. What the two rounds changed, read against the text

  • Card ②'s cross-type refusal (S6). Card ② adds its own refusal until major 19, not an extension of ADR-0146 D11's close: a package-less view write that would store a list at a name a read-only package authors as a form item is refused (VALIDATION_ERROR / 400, the envelope of the container name-collision refusal it sits beside), for an item and a container's expansion, a save, a draft's publish and a rollback; a delete is not judged; a projected form does not trigger it. The remedy works without a pair.
  • It is a narrowing, and the record now says so (S8). Some of those saves are admitted today (several shippers, no pair, a shadowed re-save, a container overlaying the package's own). Card ② carries Metadata-protocol: narrowed; the execution table, the ② and ⑤ bullets, TL;DR 10 and Consequences agree. AGENTS.md's Post-Task Checklist step 3 sets a floor of minor for a kind and does not hold a narrowing to a major; ADR-0087 makes card ②'s changeset owe the breaking banner, FROM/TO and a disposition. Card ④ stays none.
  • The ceremony and the served read (S7, S9). D7-d finds the served row among every stored row at the address, form or not; where it carries no form, nothing of the name is moved and every row of the name holds the upgrade. The projection reads served rows only, so a package-less form behind a writable package's own same-name list stays unserved as today and is not moved. Each case has a card ② pin or a card ⑤ fixture with an ablation.
  • The decision owed before major 19 now covers two kinds of row (a no-form row over a linked base; a form row no layer reads behind a list). TL;DR 10, Consequences and the PR body's quick-read name it.
  • TL;DR 10 still lists five points past the ruling's words and names four further choices that touch no ruled word.

3. The ten ruled lines

Byte-identical at c74ae94fe1a, 737f6f288c4 and 102c857d0e9 (md5 by grep -E 'Ruled: A|^Ruling-ref:'); none is a changed line.

4. Gates

The dev ran the 21 derived families at each head, all exit 0; check-runs at this head read by pr-state.mjs --pr 36957 before this was posted.

5. Accepted deviations · findings

  • Accepted: model-free trailers. Round 7's dev fast-forwarded this seat's shared checkout's local branch by a failed chained command and moved it back at once; the seat read the checkout afterwards (claude/gracious-cori-5uc0nz at 4c18c43dfa0, tree clean). Nothing was pushed.
  • No must-fix, no should-fix.

6. Landing clause

Tier H. The hand-off goes to the maintainer once the delta contract review at this head reads PASS with no open finding. After merge the seat files cards ② to ⑤ from the dev reports (② carries Metadata-protocol: narrowed and a Clause-②: arm set at its claim), Blocked-by: ③ on #36444, the pointer comments on #36444 and #36505, and the major-19 decision on card ⑤.

…isposition; served rows are asked per package address

Folds the delta contract review of head 102c857 (S10, N11 to N15) and ruling record 7136809727 on the card.

- the ruling, quoted beside question 4 outside the ruled blocks: the rows stay as stored, are not moved, and do not hold major 19
- rule 11's kept check covers the row that carries no form; D5's bounded reading and card 2's refusal last as long as that check
- D5 and D7-d: the served-row order is asked per package address in the form read's own resolution, never from the effective view list
- card 2's fixture for a read-only base; card 5's precheck pin for the two ruled kinds; the Clause-2 arm and disposition under narrowed

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a9b2da75f7aa3bfbf1b8cf55eba2370238fc769d
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers 102c857d0e9..a9b2da75f7a: one commit, parent 102c857d0e9, no merge, ADR-0159 only (+36/−27). The previous delta review is at head 102c857d0e9 (record ID: 7136878154). Everything outside this delta stands as judged in the earlier records.

Inputs read: ruling record 7131569242, ruling record 7136809727 and its confirmation 7137033870, and dev report 7137734330 on card #36868 (in full, with its replacement texts for cards ② and ⑤); PR #36957's body as replaced this round; the delta diff; ADR-0159 at a9b2da75f7a wherever the delta touches it or leans on it (TL;DR, D3, D5, D6 rule 11, D7 whole, question 4 and the paragraphs after it, Consequences, the execution plan). Nothing was built or run; every statement below about what the code does today is a reading carried from the last round, where servedOverlayRowCandidates and mergePackageAwareOverlay were read. Security-touching: yes is meant: the delta states which stored rows the anonymous form doors may serve, and which rows reach major 19 unmoved.

origin/main has moved since the dev's report (a73edb3cd78 to 422df616516, 87 files). None is under docs/adr/, packages/metadata-protocol/src, or is packages/rest/src/form-routes.ts, packages/spec/src/ui/view.zod.ts, AGENTS.md or one of the two changeset gates. The branch's merge base is still a73edb3cd78.

Check-runs on the head, read again just before this was written: 48 runs, all completed, none failed. 26 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, two PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 22 skipped by path filter or opt-in.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right for this PR.
  • The per-step values are unchanged by the delta: none, narrowed, none, none, narrowed. TL;DR 3 and D5's heading now say "additive, with one write narrowed", which agrees with TL;DR 9 and the table.
  • Card ②'s refusal is now permanent for as long as the replacement check is kept. That changes how long the narrowing lasts and does not change its kind: a value refused is narrowed whether the refusal ends at a major or not. Card ⑤ stays narrowed for the tombstones. No step value moves.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes in the PR's own diff.

③ Boundary flags

  • The ten Ruled: A / Ruling-ref: lines. Unchanged. grep -E 'Ruled: A|^Ruling-ref:' on the file at a9b2da75f7a gives ten lines, md5 ce1a37ec97b8231d621ca355872475d9, the value of the last head. git diff -U0 over the delta shows none of them as a changed line, and no hunk falls inside a ruled block: the one hunk in the questions section inserts after question 4's second marked paragraph and before question 5's heading. Read again against ruling record 7131569242: Q1 (factory, defineMetadataForm, card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1, no rename), Q3 (write door, os validate, publish; new type only), Q4 (exempt from the age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body at the top level). Each says what the ruling says.
  • The later ruling, as written in. The quote is verbatim, 「两类特殊的旧存储行怎么处置。不考虑」, with the record's id and its time (15:53Z). It stands in a marked paragraph after question 4, headed as outside the ruled blocks of the five questions. No Ruled: line and no Ruling-ref: line was added. The two kinds are named as the ruling record names them: a stored view row that carries no form over a linked base, in a binding D5 bounds; a package-less form row no layer reads, behind a writable package's own list of the same name. The four parts of the answer are each there: no disposition of their own, not moved by the ceremony, major 19 not held, they stay as stored. The paragraph separates three things correctly: the maintainer's words, the seat's reading of them, and what this record adds of its own.
  • The sweep. Every place the last head left the decision owed, or held the upgrade for these two kinds, now carries the answer: TL;DR 10's fourth item, D5's known limit, D5's closing sub-bullet, D5's "Cost" line, D7-b's no-form bullet, both D7-d bullets, the "must be run" bullet, the table row "Carrying no form", the two fold fixtures, the precheck pin (split in two: what it refuses, and what it does not hold), the kept-reader pin, the last bullet under "After the major", and both Consequences bullets.
  • Nothing else was swept. A row whose pair cannot be ensured still holds the upgrade (D7-c, its two cause lists, the Consequences bullet, card ⑤'s pin). A body the projection cannot read still holds it. The kernel case still goes to the maintainer as a decision before major 19 opens. The translation fallback still ends at major 19. The "must be run" bullet lists the classes that hold as "its pair cannot be ensured, or its body cannot be read", and the precheck pin's four classes are movable, internal, pair not ensurable, body not readable.
  • Three sentences the sweep missed still state the premise the ruling removed. That is S11 in ④.
  • Dev flags of report 7137734330 (its notes for the seat). Consequence (a), the reading and the refusal kept past major 19: right and necessary, judged in ④. Consequence (b), the answer resting on TL;DR 10's fifth point: right, judged in ④, with N20. The form rows behind a no-form row: a fair reading, judged in ④, with N16. The report still naming the rows, with no action: agreed. N12 answered by the ruling: agreed, and the positive half of the precheck pin with its ablation is the right replacement. N11: folded. TL;DR 10's count of five and four: confirmed. The PR body: read as replaced; N19. Cards ③, 4a, 4b unchanged: not re-read. open_questions: none.
  • SQL push-down: nothing in the delta reads data.

④ Design judgment

What the previous delta raised (record ID: 7136878154):

S10 (should-fix): closed

  • (1) D5's lead now says the order is asked per package address, inside the form read's own resolution over both types, and ⛔ never taken from the effective view list. It gives the reason in one sentence: a package-less row is in every package's order, so one row can be served at one address and passed over at another. A new sub-bullet names the two implementations ruled out and says why the second opens an address (the base has left the view type, the view merge no longer resolves its address).
  • (2) The consequence is scoped in three steps: at the writable package's address the list is served and the row passed over; where no read-only package's address serves the row, the save closes its form; where the row stands over a read-only package's form it stays the served body there, whatever a writable package holds at the name.
  • (3) D7-d says "This is the rule at the writable package's address, and only there", and gives the row its destination in the base's pair, or D7-c's hold, at the read-only base's address.
  • (4) Card ② has the second fixture in the record and in the card text: a read-only package authors an open form, a link-less package-less view row stands over it, a list is saved into an app of the environment's own and into the pair as its own item; both doors answer 404 before and after; the ablation is the reading S10 named.
  • The account of today agrees with the code as read last round: the served-row order is the package's own row, then the package-less row, never another package's, and the merge resolves each package at a name on its own.

Nits of that record:

  • N11: folded, in the ② bullet and in card ②'s declaration lines and "Done when". One slip of punctuation is left ("question 1; With narrowed").
  • N12: answered by the ruling. The row no longer holds the upgrade, so the precheck owes it no class.
  • N13: folded. TL;DR 10's fourth item names both kinds.
  • N14: folded in the record ("whichever withdrawal layer reads it today"). Card ②'s text still says "the withdrawal layer"; either reading only narrows.
  • N15: folded. TL;DR 3, D5's heading and the PR body's D5 bullet carry the exception.

Consequence (a): the D3 exception is no longer temporary. The dev's reasoning holds. At the last head the bounded reading and card ②'s refusal ended at major 19 on one premise: no deployment reaches the major holding a row of that reading. The ruling removes the premise. A no-form row now reaches the major as stored, and the only thing that keeps its base's address closed there is rule 11's replacement check. So the check has to read a row that carries no form, the bounded reading has to last as long as the check, and the refusal has to last with it: without the refusal a package-less list saved after the major at a form's name could not be told from a row written over the form, and would close a form its administrator never meant to close. Each step only narrows. It is said the same way in TL;DR 10 (second of the four), D3, D5 (the refusal's lead, the known limit, the closing sub-bullet, which adds that card ⑤ removes neither), the table's last column, the last bullet under "After the major", both Consequences bullets, card ②'s item on the refusal, card ⑤'s item 7, and the quick-read. Three sentences elsewhere were not brought along: S11.

Consequence (b): the answer rests on TL;DR 10's fifth point. True, and the record says so in three places: the marked paragraph after question 4, the last bullet under "After the major", and TL;DR 10's fourth item ("the fifth point above"). It is the honest statement of the dependency. If the approver strikes the fifth point, the check ages out one major after major 19 and the address of an unheld no-form row opens then; the record returns the question to the maintainer instead of choosing. The place where a point is struck does not carry the warning yet: N20.

The form rows behind a no-form row. D7-d now leaves them as stored and unheld with the no-form row. I read that as a fair reading of the ruling and not past it, for three reasons. At the last head those rows were held only "with the no-form row": the hold had no cause of its own and no action of its own, so it could only end by the disposition of the row in front. With that row ruled unmoved and unheld, a hold on the rows behind it would keep the deployment on major 18 with no action the precheck may name (D7-e offers no deletion for a row that declares a link), which is the hold the ruling's answer removes. It fails closed: the row in front keeps the address closed before the major and after it, and if an administrator later removes that row after the major, the form row behind it is itself an old-shape row over the package's form and the kept check still replaces. And the marked paragraph lists it under "What follows in this record, and is this record's own", where the maintainer can correct it. The attribution is not the same everywhere: N16.

The break, tried once more on this head. Can a public address that is closed today answer, now that two kinds of row and the form rows behind the first kind reach major 19 unmoved? Walked for each row, before the major, at the precheck, and on a major-19 build.

  • A no-form row over a linked base: closed in dual-read by D5's bounded reading; not counted by the precheck; closed after the major by the kept check, which the record now says covers it, with a pin on the major-19 build whose ablation is that exact read.
  • A package-less form row behind a writable package's list: read by no layer today; not served from card ②; after the major the projection serves no content, so the row cannot be served even if the list ahead of it is later removed. If a read-only package later authors a form at that name, the row stands over it and the check replaces: nothing is served, which costs availability and opens nothing.
  • A form row behind a no-form row: as argued above.
  • The same package-less row passed over at a writable package's address and served at a read-only base's: D7-d keeps its destination or its hold at the base's address. An implementation of the precheck that exempts the row by what it sees at the writable package's address alone lets through a row that should hold where the pair cannot be ensured. That opens nothing, because the unmoved row still replaces after the major. It is the pin note in N16.
    No address opens. What the walk found is in the text, not in the design:

S11 (should-fix) — Three sentences still state the premise the ruling removed, and each now contradicts a sentence this delta wrote beside it. (i) D7, the paragraph "This record's own reading, past the scope question 4 rules", ends: "No deployment that passed the precheck holds such a row; the check is there for a row that arrives out of band, and it only narrows." The "must be run" bullet now says the upgrade proceeds with rows of the two kinds, and the fourth bullet under that same paragraph says such a row "reaches major 19 as stored, and this check is what keeps its base's address closed there". This is the paragraph the approver reads to accept or strike TL;DR 10's fifth point, and the stale sentence understates what the check now carries. Its third bullet has the same seam: "If the reading is struck, card ⑤ builds that", against "striking it puts that question back to the maintainer" one bullet down. A builder who follows the third bullet ages the check out, and the address of an unheld no-form row answers one major later. (ii) D5, the bullet on a stored view row that carries no form: "nothing is served for the name from that package until D7 gives the row its disposition". D7 now gives it none; the reading lasts as long as the check, as D5's own closing sub-bullet says. (iii) D5's list opens "From the release that adds the type until the next protocol major:", over a reading and a refusal the same section now keeps past it. Fix, prose only, one sentence each. In (i): "A deployment that passed the precheck can hold one of the rows the later ruling leaves as stored (question 4, the last paragraph after it); for those rows the check is what keeps the address closed, and for any other it is there for a row that arrives out of band." and in the third bullet: "If the reading is struck, card ⑤ builds that only after the maintainer has answered again for the rows the later ruling leaves as stored." In (ii): "nothing is served for the name from that package for as long as the row stands and rule 11's replacement check is kept". In (iii): one clause on the lead, "two things here last longer, and say so where they stand".

Nits (prose faces, or a pin note on a card; none changes an outcome):

  • N16 — Whose reading the unheld form rows are. The marked paragraph after question 4 calls it this record's own. D7-d says "By the ruling recorded beside question 4 none of them holds the upgrade", and the "must be run" bullet widens the second ruled kind to "a form row no layer reads behind a served row that carries no form", which takes those rows in as if the ruling named them. One wording in all three: the two kinds as the ruling record names them, then "and, by this record's reading of that answer, a form row left behind a no-form row". Two pin notes for card ⑤. The precheck pin's positive half gains that row as a third fixture (the fold fixture already asserts it; the precheck pin names two). And the precheck asks "not counted" per package address, as D5 asks "served": a package-less row passed over at a writable package's address still holds at a read-only base's address whose pair cannot be ensured.
  • N17 — The marked paragraph says of the seat's reading "the maintainer may correct it" and cites ruling record 7136809727 alone. The maintainer confirmed that reading by name (record 7137033870, 「同意」, 16:02Z), after the two kinds, the effect and the cost were put to him. Cite it beside the first; the paragraph is then about a confirmed reading and its third bullet is the only part still open to correction.
  • N18 — TL;DR 5 and the Consequences bullet "A stored row that keeps a public address closed is never set aside" both say such a row "is moved". A no-form row keeps an address closed by replacing and is now ruled to stay as stored. "Is moved, or by the later ruling left as stored, and is never deleted or offered for deletion." The second half of each sentence stays true. The same Consequences bullet could say that where a form row stands behind the no-form row, removing the row in front before the major serves the row behind it and not the base's form; the report names both.
  • N19 — The PR body's D7 bullet still says "where it carries no form, no row of that name is moved and all of them hold the upgrade", and its "Read first" items 2 and 4 call text of earlier rounds "new text of this round". The seat owns the body.
  • N20 — The dependency is not said where a point is struck. TL;DR 10's fifth point, the second marked paragraph after question 4, and the quick-read's ⑤ each offer the point to be struck without saying that striking it reopens a question already ruled. One clause at each: "striking this returns the later ruling on the two kinds of row to the maintainer". The quick-read's last item says no closed form opens "因此"; that holds only while ⑤ stands.
  • N21 — The later ruling narrows which rows major 19's precheck counts, and two of the uncounted kinds are old-shape form rows. Question 4's ruled sentence and D7-f still describe a precheck that "has refused every deployment that still holds one". Nothing opens by it: the reader is kept through major 19 by the record's own choice, and the uncounted form rows are read by no layer or sit behind a row the check keeps closed. One sentence in the marked paragraph: the release that one day removes the reader or the check owes its own answer for these rows, since major 19's precheck no longer refuses them.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

…ruling; the confirmation is cited

Folds the delta contract review of head a9b2da7 (S11, N16 to N18, N20, N21).

- D7 and D5: the sentences that still said no deployment reaches the major holding such a row, and that D7 gives the row a disposition
- the paragraph after question 4 cites the maintainer's confirmation beside the ruling, says which rows the ruling names and which this record reads in, and what a later release owes
- striking TL;DR 10's fifth point returns the later ruling to the maintainer, said where the point is offered

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d9a00e5acf546c27455be88c53241afe0a9c6061
Local-runs: none
Scope: docs/adr/0017-object-has-many-view.md,docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md,docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/adr/README.md + none
Security-touching: yes

Delta record. It covers a9b2da75f7a..d9a00e5acf5: a merge of origin/main (f17dd598b3f, second parent b01d8f97e97) and one commit on top, d9a00e5acf5, ADR-0159 only (+15/−14). The previous delta review is at head a9b2da75f7a (record ID: 7137988978). Everything outside this delta stands as judged in the earlier records. This round is a closing prose round, and the break was not tried again over the whole record: each changed sentence was read against today's code as the earlier rounds read it, against the rest of the record, and against the maintainer's three records.

Inputs read: ruling record 7131569242, ruling record 7136809727, its confirmation 7137033870, and dev report 7138873090 on card #36868 (its summary and notes for the seat in full; its card texts where this round changed them); PR #36957's body as replaced this round; the delta diff, word by word; ADR-0159 at the head wherever the delta touches it or leans on it (TL;DR 3 to 10, D5 whole, D7-d, D7-e, the "must be run" bullet, D7-f, "After the major" and the paragraph after it, question 4 with its three paragraphs, the Consequences bullets). Nothing was built or run. Security-touching: yes is meant: the delta restates which stored rows major 19's precheck counts and what keeps their public addresses closed.

The merge. a9b2da75f7a..f17dd598b3f moves 88 files, all modified or added, none renamed or deleted. None is under docs/adr/, scripts/adr-anchors/, scripts/pm/, packages/metadata-protocol/, packages/lint/, packages/metadata/, packages/objectql/ or examples/, and none is AGENTS.md. Of the 70 file paths ADR-0159 cites, none is in the merge. One file the record names by basename is: StudioDesignSurface.tsx (+5/−10, a route helper). The record says of it only that the Form-tab switch is not on main; that still holds at this head. packages/spec moves one file (system/validation-message.ts) and packages/rest one test, neither cited. No symbol anchor of the record sits in a moved file.

Check-runs on the head, read again just before this was written: 48 runs, all completed, none failed. 26 success: Lint & Repo Gates, TypeScript Type Check, the eight Lint · lanes, the four Type Check · lanes, Test Core and Test Core (1/10), Plan Test Core shards, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, two PR-body guard runs, Check Documentation Links, Check PR Size, Auto Label, filter. 22 skipped by path filter or opt-in.

① Derived judgments

  • The diff still publishes nothing: four files under docs/adr/. Metadata-protocol: none and Clause-②: no on the PR body are right for this PR.
  • The per-step values are unchanged by the delta: none, narrowed, none, none, narrowed. No changed sentence moves a refusal, a door or a read rule; the delta changes how four things are said and adds one statement of what a later release owes.

② Semver level

skip-changeset is still right: nothing under packages/ or ui/ changes in the PR's own diff.

③ Boundary flags

  • The ten Ruled: A / Ruling-ref: lines. Unchanged. grep -E 'Ruled: A|^Ruling-ref:' on the file at d9a00e5acf5 gives ten lines, md5 ce1a37ec97b8231d621ca355872475d9, and the same command on the file at a9b2da75f7a gives the same value. No hunk falls inside a ruled block: the five changed lines in the questions section all stand after question 4's Ruling-ref: line and before question 5's heading. Read again against ruling record 7131569242: Q1 (factory, defineMetadataForm, card ②, declared compiler-carried break), Q2 (OBJECT.KEY, bucket 1, no rename), Q3 (write door, os validate, publish; new type only), Q4 (exempt from the age-out; leaves only by a release whose precheck refuses; major 19 carries it; no withdrawn public form may re-open), Q5 (name, object, body at the top level). Each says what the ruling says.
  • The later ruling and its confirmation, as cited. The quote of 7136809727 is unchanged. The new sentence on 7137033870 says the seat put to the maintainer the two kinds of row, the effect and the cost, and that he answered 「同意」 at 16:02Z. That is what the record carries, in that order. The first bullet now reads "as the first record carries it and the second confirms it", which is exact: the confirmation covers no disposition, no upgrade hold, rows left as stored, both addresses closed. It does not cover the form row behind a no-form row, and the record does not say it does: that row stays under "this record's own".
  • TL;DR 10. Still five points past the ruling's words, in five bullets, and four more things beside them. The fifth point gained one sentence and no point was added or merged.
  • Nothing closed was reopened. The hunks touch none of the text that closed S10 (D5's "served rows only" bullet with its three sub-bullets, D7-d's address rule, card ②'s second fixture) and none that closed S6 to S9. D7-d changes in one place, and only in whose reading the unheld rows are.
  • Dev flags of report 7138873090 (its notes for the seat). The two pin notes on card ⑤: the precheck pin's positive half has the row behind a no-form row as a third fixture and an address fixture as a fourth, with the ablation "ask not counted by name and not per package address". Agreed, and it is the pin N16 asked for. N20 in three places: confirmed, the third being the PR body's quick-read. N19 in the replacement body: confirmed, with N24. Cards ③, 4a, 4b unchanged: not re-read. open_questions: none.
  • SQL push-down: nothing in the delta reads data.

④ Design judgment

What the previous delta raised (record ID: 7137988978):

S11 (should-fix): closed

  • (i) D7, the paragraph after "After the major". The sentence that no deployment that passed the precheck holds such a row is gone. In its place: a deployment that passed can hold one of the rows the later ruling leaves as stored; for those the check is what keeps the address closed, and for any other it is there for a row that arrives out of band. It now agrees with the "must be run" bullet and with the fourth bullet under the same paragraph. The third bullet says card ⑤ builds the alternative "only after the maintainer has answered again for the rows the later ruling leaves as stored", which agrees with the bullet below it. A builder who follows either bullet no longer ages the check out on his own.
  • (ii) D5, the bullet on a stored view row that carries no form: "for as long as the row stands and rule 11's replacement check is kept". It agrees with D5's closing sub-bullet and names no disposition.
  • (iii) D5's list lead carries the clause, "two things here last longer, and say so where they stand". The two are the bounded reading and card ②'s refusal, and each does say so: the bullet's lead, "kept as long as the reading it protects", and the sub-bullet "The reading and the refusal last as long as rule 11's replacement check, past major 19". No third item of the list outlasts the major: the served projection ends there by "After the major", and the kept check is D6 rule 11's and D7's.
  • Each replacement is the sentence the last record proposed, placed where it proposed it.

Nits of that record:

  • N16: folded. One wording in the three places: D7-d, the "must be run" bullet, and the third bullet of the paragraph after question 4 each say the ruling record names two kinds of row and that the row behind a no-form row is this record's reading of that answer. The "must be run" bullet names the second kind as the ruling record does (a package-less form row no layer reads behind a writable package's own list). "Not counted" is asked per package address, in the record and in card ⑤'s text, with the two fixtures above.
  • N17: folded, as judged in ③.
  • N18: folded. TL;DR 5 and the Consequences bullet say "moved, or by the later ruling left as stored"; the Consequences bullet adds what removing the row in front does where a form row stands behind it. See N25.
  • N19: folded in the PR body. Its D7 bullet says these rows stay as stored and none holds the upgrade; "Read first" 2 no longer calls old text new, and 4 says "the text of the last patch rounds".
  • N20: folded in all three places. The quick-read's ⑤ carries the warning, and its last item now says the closed forms stay closed "只要上面第⑤条保留".
  • N21: folded, as a fourth bullet "What a later release owes". It counts right: of the three uncounted kinds, two are old-shape form rows. It agrees with question 4's narrowing paragraph (the reader is kept through major 19; its removal is a later release with its own precheck and a new decision). See N22.

The two leftovers:

  • "question 1; With narrowed" is "question 1. With narrowed" in the ② bullet.
  • Card ②'s text says "it stays in whichever withdrawal layer reads it today, where it may only narrow", as D5 does. The other use of "the withdrawal layer" in that card is D6 rule 4's definition of the layer and is right as it stands.

The delta against the three grading tests.

  • Today's code. Two changed sentences speak of it. D5's "for as long as the row stands": a row at a package's address replaces what the package ships under the name while it stands, as read in the earlier rounds. The Consequences sentence, that removing the row in front serves the row behind it: the served-row order picks the next stored row at the address, so it does. Neither misstates the tree.
  • The record and the rulings. Each changed sentence was set beside the sentences it leans on; the seams found are N22, N23 and N25, and none of them lets a builder take a different action.
  • A form closed today. No changed sentence widens a read, drops a hold or shortens the life of a check. Three narrow or bind further: card ⑤ may not build the alternative before the maintainer answers again; "not counted" is asked per address, so a row that should hold is not let through by what one address shows; a later release owes its own answer before it removes the reader or the check.

No must-fix, no should-fix.

Nits (prose faces only; none changes an outcome):

  • N22 — "Only this bullet is still open to correction." closes the third bullet of the paragraph after question 4, and a fourth bullet now follows it. "What a later release owes" is this record's own as well, and the maintainer confirmed neither. Move the sentence to the end of the fourth bullet as "These two bullets are still open to correction", or drop "Only".
  • N23 — D7, the replaced sentence: "for those rows the check is what keeps the address closed". "Those rows" are all the rows the later ruling leaves as stored. For the no-form row and a form row behind it that is exact. The second ruled kind, the package-less form row behind a writable package's own list, stays closed because no layer reads it, as the paragraph after question 4 says. The wording was this review's own in the last record. "For the no-form row among them" would be exact.
  • N24 — The PR body, which the seat owns. Its D6 bullet still says "Rule 11 is new in this round", and the quick-read's "这一轮补上的是" describes a round five heads back. Its Verification line counts 44 check-runs, 25 and 19; 48 were read on this head, 26 and 22, the difference being runs that started after the body was edited.
  • N25 — D7-e says "deleting a link-less row over a linked base serves the base's form again". The Consequences bullet now says that where a form row stands behind such a row, removing the row in front serves the row behind it and not the base's form. D7-e states the general case and Consequences the exception; both are reasons the removal is never offered, so no action differs. One clause in D7-e, "or the form row behind it, where one stands", would make the two read as one.

ADR-0017, ADR-0146, docs/adr/README.md: unchanged by the delta; nothing to add.

Implemented-by: claude/issue-36868-form-metadata-type-adr
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head d9a00e5acf546c27455be88c53241afe0a9c6061 · 2026-11-24T17:22Z

Delta over the seat's ACCEPT at head 102c857d0e9 (record ID: 7136901746). Two prose rounds, ADR-0159 only: a9b2da75f7a (folding contract review 7136878154: S10, N11–N15, and the maintainer's ruling 7136809727 with its confirmation 7137033870) and d9a00e5acf5 on a clean merge of origin/main (folding contract review 7137988978: S11, N16–N21). Dev reports 7137734330 and 7138873090 on #36868.

  • Shape. Against main still four files under docs/adr/. Clause-②: no, Metadata-protocol: none, skip-changeset. Status Proposed. Tier H. The ten Ruled: A / Ruling-ref: lines are byte-identical across both rounds.
  • S10 (served-row order per package address). The order is asked per package address in the form read's own two-type resolution, never from the effective view list; the consequence sentence is scoped; D7-d agrees; card ② carries the fixture.
  • The maintainer's ruling on the two held kinds of row (「两类特殊的旧存储行怎么处置。不考虑」, confirmed 「同意」) is written in: no disposition of their own, not moved, major 19 not held, stay as stored; the quote stands in a marked paragraph after question 4, outside the ruled blocks, with no new Ruled: line. Every former "decision owed before major 19" for those kinds is replaced; the pair-not-ensurable, unreadable-body and kernel cases still hold the upgrade. Consequence stated and accepted: card ②'s package-less refusal now lasts as long as rule 11's kept replacement check, not only to major 19; striking TL;DR 10's fifth point returns the question to the maintainer (said at the point, beside question 4, and in the quick-read).
  • S11 (three stale sentences) and the nits are folded with the record's own wording; nothing marked closed was reopened. TL;DR 10 still counts five points past the ruling's words.
  • PR body replaced from the dev's file, signed trailer kept; its quick-read names the ruling and the lasting refusal.
  • Gates. The dev ran the 21 derived families at the head, all exit 0. Check-runs at this head: 27 success, 25 expected skip, 0 failed, 0 pending (pr-state.mjs --pr 36957). Delta contract review at this head: PASS, nothing open (record ID: 7139082343); its nits N22, N23, N25 are prose left as accepted, N24 (stale PR-body lines) fixed by the seat in the body.
  • Approval. os-zhuang approved at 102c857d0e9 (review 6042663688). The maintainer, verbatim, in this seat's session, on the patch rounds after it: 「不需要等我重新批准」. The seat lands on that approval once the contract review at this head reads PASS with no open finding.
  • No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Landing · 2026-11-24T18:55Z · head d9a00e5acf546c27455be88c53241afe0a9c6061. Tier H: approved by os-zhuang (review 6042663688, counts on any commit); seat ACCEPT at this head 7139112349; contract review PASS at this head, nothing open, 7139082343. The maintainer, verbatim, in this seat's session: 「不需要等我重新批准」 and, for this landing, 「允许合入 #36957」.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 18:56
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit cdfb7da Nov 24, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36868-form-metadata-type-adr branch November 24, 2026 19:17
This was referenced Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants